Skip to content

Commit a1eebfb

Browse files
vanicatgitster
authored andcommitted
git.el: find the git-status buffer whatever its name is
git-status used the buffer name to find git-status buffers, and that can fail if the buffer has another name, for example when multiple working directories is tracked. Signed-off-by: Rémi Vanicat <vanicat@debian.org> Acked-by: Alexandre Julliard <julliard@winehq.org> Tested-by: Xavier Maillard <xma@gnu.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f1a8cc6 commit a1eebfb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/emacs/git.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1432,7 +1432,7 @@ Commands:
14321432
(with-current-buffer buffer
14331433
(when (and list-buffers-directory
14341434
(string-equal fulldir (expand-file-name list-buffers-directory))
1435-
(string-match "\\*git-status\\*$" (buffer-name buffer)))
1435+
(eq major-mode 'git-status-mode))
14361436
(setq found buffer))))
14371437
(setq list (cdr list)))
14381438
found))

0 commit comments

Comments
 (0)