summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.emacs.d/init.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index fe63b28b..0731dc7c 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -1484,7 +1484,7 @@ don't consider windows satisfying the predicate EXCLUDE."
;; We want `inhibit-same-window' t except when popping to a buffer
;; that's already selected, e.g. hitting 'g' in a *vc-diff* buffer.
,@(and (fboundp 'buffer-match-p) ; for Emacs 27
- (let ((re "\\*\\(?:notes\\|vc\\(?:-reflog\\)?-diff\\)\\*"))
+ (let ((re "^\\*vc\\(?:-reflog\\)?-diff\\*"))
`((,(lambda (buffer _action)
(and (buffer-match-p re buffer)
(eq buffer (window-buffer (selected-window)))))