emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/hl-block-mode 6dc75e71b0 29/64: Fix global-hl-block-mode a


From: ELPA Syncer
Subject: [nongnu] elpa/hl-block-mode 6dc75e71b0 29/64: Fix global-hl-block-mode activating with the minibuffer
Date: Thu, 7 Jul 2022 12:00:06 -0400 (EDT)

branch: elpa/hl-block-mode
commit 6dc75e71b0b179d7c087cf7de51823f5810d671a
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Fix global-hl-block-mode activating with the minibuffer
---
 hl-block-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hl-block-mode.el b/hl-block-mode.el
index f1ba41329d..8eb90b6784 100644
--- a/hl-block-mode.el
+++ b/hl-block-mode.el
@@ -186,8 +186,8 @@ This can happen when switching buffers."
 ;;;###autoload
 (defun hl-block-mode-turn-on ()
   "Enable command `hl-block-mode'."
-  (hl-block-mode 1))
-
+  (when (and (not (minibufferp)) (not hl-block-mode))
+    (hl-block-mode 1)))
 
 (provide 'hl-block-mode)
 ;; Local Variables:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]