Merge remote branch 'refs/remotes/vanicat/t/multi-buffer'
This commit is contained in:
commit
0f628c37ce
1 changed files with 4 additions and 5 deletions
9
magit.el
9
magit.el
|
@ -2495,11 +2495,10 @@ insert a line to tell how to insert more of them"
|
|||
(setq topdir (magit-get-top-dir dir))))
|
||||
(when topdir
|
||||
(let ((buf (or (magit-find-buffer 'status topdir)
|
||||
(switch-to-buffer
|
||||
(get-buffer-create
|
||||
(concat "*magit: "
|
||||
(file-name-nondirectory
|
||||
(directory-file-name topdir)) "*"))))))
|
||||
(generate-new-buffer
|
||||
(concat "*magit: "
|
||||
(file-name-nondirectory
|
||||
(directory-file-name topdir)) "*")))))
|
||||
(switch-to-buffer buf)
|
||||
(magit-mode-init topdir 'status #'magit-refresh-status)
|
||||
(magit-status-mode t)))))
|
||||
|
|
Loading…
Reference in a new issue