fix(vc-gutter): resist errors in kill-buffer advice
A regression introduced inaa8c31c
. Fix: #8018 Ref: #8009 Amend:aa8c31cf08
This commit is contained in:
parent
b521492bf4
commit
93c5f98ee2
1 changed files with 3 additions and 2 deletions
|
@ -192,8 +192,9 @@ Respects `diff-hl-disable-on-remote'."
|
|||
;; triggered from Elisp's buffer API (from what I can tell).
|
||||
(defadvice! +vc-gutter--kill-diff-hl-thread-a (&optional buf)
|
||||
:before #'kill-buffer
|
||||
(with-current-buffer (or buf (current-buffer))
|
||||
(+vc-gutter--kill-thread t)))
|
||||
(when-let ((buf (ignore-errors (window-normalize-buffer buf))))
|
||||
(with-current-buffer buf
|
||||
(+vc-gutter--kill-thread t))))
|
||||
|
||||
;; HACK: diff-hl won't be visible in TTY frames, but there's no simple way to
|
||||
;; use the fringe in GUI Emacs and use the margin in the terminal *AND*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue