fix(vc-gutter): wrong-number-of-args error

A regression introduced in ded3f5e.

Fix: #8009
Amend: ded3f5ec83
This commit is contained in:
Henrik Lissner 2024-08-21 12:57:28 -04:00
parent ff9c59df46
commit aa8c31cf08
No known key found for this signature in database
GPG key ID: B60957CA074D39A3

View file

@ -190,6 +190,7 @@ Respects `diff-hl-disable-on-remote'."
;; HACK: This advice won't work in *all* cases (it's a C function, and any
;; calls to it from C won't trigger advice), but the thread issues above are
;; triggered from Elisp's buffer API (from what I can tell).
(defadvice! +vc-gutter--kill-diff-hl-thread-a (buf)
(defadvice! +vc-gutter--kill-diff-hl-thread-a (&optional buf)
:before #'kill-buffer
(with-current-buffer buf (+vc-gutter--kill-thread t))))
(with-current-buffer (or buf (current-buffer))
(+vc-gutter--kill-thread t))))