Goto "Unstaged changed" when creating status buffer.
* magit.el (magit-update-status): Goto first unstaged change when point is still at beginning of buffer.
This commit is contained in:
parent
4916b98e4a
commit
1161d292f6
1 changed files with 3 additions and 1 deletions
4
magit.el
4
magit.el
|
@ -714,7 +714,9 @@ Please see the manual for a complete description of Magit.
|
|||
"git" "log" "--graph" "--pretty=oneline"
|
||||
(format "%s/%s..HEAD" remote branch))))
|
||||
(magit-goto-line old-line)
|
||||
(magit-goto-section old-section))
|
||||
(magit-goto-section old-section)
|
||||
(when (bobp)
|
||||
(magit-goto-section '(unstaged 1 1))))
|
||||
(magit-refresh-marks-in-buffer buf)
|
||||
(magit-highlight-item)))
|
||||
|
||||
|
|
Loading…
Reference in a new issue