Bug fix: Commit buffer will fill if the commit is current and the buffer dead.
This commit is contained in:
parent
f9f1c00c78
commit
10f88917ca
1 changed files with 4 additions and 1 deletions
5
magit.el
5
magit.el
|
@ -1891,7 +1891,10 @@ in log buffer."
|
|||
(setq commit (magit-section-info commit)))
|
||||
(let ((dir default-directory)
|
||||
(buf (get-buffer-create "*magit-commit*")))
|
||||
(cond ((equal magit-currently-shown-commit commit)
|
||||
(cond ((and (equal magit-currently-shown-commit commit)
|
||||
;; if it's empty then the buffer was killed
|
||||
(with-current-buffer buf
|
||||
(> (length (buffer-string)) 1)))
|
||||
(let ((win (get-buffer-window buf)))
|
||||
(cond ((not win)
|
||||
(display-buffer buf))
|
||||
|
|
Loading…
Reference in a new issue