Fixlet.
* magit.el (magit-find-buffer): Don't try to expand the default-directory when it is nil.
This commit is contained in:
parent
4ec9df0070
commit
b825b8899c
1 changed files with 2 additions and 1 deletions
3
magit.el
3
magit.el
|
@ -1164,7 +1164,8 @@ Please see the manual for a complete description of Magit.
|
|||
(dolist (buf (buffer-list))
|
||||
(if (save-excursion
|
||||
(set-buffer buf)
|
||||
(and (equal (expand-file-name default-directory) topdir)
|
||||
(and default-directory
|
||||
(equal (expand-file-name default-directory) topdir)
|
||||
(eq major-mode 'magit-mode)
|
||||
(eq magit-submode submode)))
|
||||
(return buf)))))
|
||||
|
|
Loading…
Reference in a new issue