Make status buffer names special. Thanks to John Wiegley!
* magit.el (magit-status): Use a name of the form "*magit: foo* instead of just "foo".
This commit is contained in:
parent
27e1666786
commit
dc371ff868
1 changed files with 5 additions and 2 deletions
7
magit.el
7
magit.el
|
@ -641,8 +641,11 @@ Please see the manual for a complete description of Magit.
|
|||
(save-some-buffers)
|
||||
(let* ((topdir (magit-get-top-dir dir))
|
||||
(buf (or (magit-find-status-buffer topdir)
|
||||
(create-file-buffer (file-name-nondirectory
|
||||
(directory-file-name topdir))))))
|
||||
(switch-to-buffer
|
||||
(generate-new-buffer
|
||||
(concat "*magit: "
|
||||
(file-name-nondirectory
|
||||
(directory-file-name topdir)) "*"))))))
|
||||
(switch-to-buffer buf)
|
||||
(magit-mode-init topdir 'status)
|
||||
(magit-update-status buf)))
|
||||
|
|
Loading…
Reference in a new issue