* magit.el (magit-find-buffer): Don't try to expand the
default-directory when it is nil.
This commit is contained in:
Marius Vollmer 2009-02-09 02:51:57 +02:00
parent 4ec9df0070
commit b825b8899c

View file

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