From aa8c31cf080692ca27960cd9a880ff9faf09e8c8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 21 Aug 2024 12:57:28 -0400 Subject: [PATCH] fix(vc-gutter): wrong-number-of-args error A regression introduced in ded3f5e. Fix: #8009 Amend: ded3f5ec8349 --- modules/ui/vc-gutter/config.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ui/vc-gutter/config.el b/modules/ui/vc-gutter/config.el index 80b3f2314..d54f44a50 100644 --- a/modules/ui/vc-gutter/config.el +++ b/modules/ui/vc-gutter/config.el @@ -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))))