Don't show empty *magit-stash* buffer.
This commit is contained in:
parent
7dad3be958
commit
f754864373
1 changed files with 3 additions and 1 deletions
4
magit.el
4
magit.el
|
@ -2916,7 +2916,9 @@ Prefix arg means justify as well."
|
|||
(setq stash (magit-section-info stash)))
|
||||
(let ((dir default-directory)
|
||||
(buf (get-buffer-create "*magit-stash*")))
|
||||
(cond ((equal magit-currently-shown-stash stash)
|
||||
(cond ((and (equal magit-currently-shown-stash stash)
|
||||
(with-current-buffer buf
|
||||
(> (length (buffer-string)) 1)))
|
||||
(let ((win (get-buffer-window buf)))
|
||||
(cond ((not win)
|
||||
(display-buffer buf))
|
||||
|
|
Loading…
Add table
Reference in a new issue