From ff3fd15b0249954f3a859e533f6c09a8b1988a72 Mon Sep 17 00:00:00 2001 From: Dan McArdle Date: Fri, 26 Jul 2024 15:22:56 -0400 Subject: [PATCH] fix(vc-gutter): check 'diff-hl-disable-on-remote is bound MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following error message on startup: Symbol’s value as variable is void: diff-hl-disable-on-remote --- modules/ui/vc-gutter/config.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ui/vc-gutter/config.el b/modules/ui/vc-gutter/config.el index 4dcc1f2a3..688d803d0 100644 --- a/modules/ui/vc-gutter/config.el +++ b/modules/ui/vc-gutter/config.el @@ -69,7 +69,7 @@ (defun +vc-gutter-enable-maybe-h () "Conditionally enable `diff-hl-dired-mode' in dired buffers. Respects `diff-hl-disable-on-remote'." - (unless (and diff-hl-disable-on-remote + (unless (and (bound-and-true-p diff-hl-disable-on-remote) (file-remote-p default-directory)) (diff-hl-dired-mode +1))))