Bug fix: Commit buffer will fill if the commit is current and the buffer dead.

This commit is contained in:
Phil Jackson 2010-03-10 21:21:33 +00:00
parent f9f1c00c78
commit 10f88917ca

View file

@ -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))