Fix hl-line-mode/global-hl-line-mode logic again
* lisp/hl-line.el (hl-line-mode): Make explicit calls to (hl-line-mode 1) work again when global-hl-line-mode is on (bug#58478).
This commit is contained in:
parent
4af4df18c5
commit
12f261c470
1 changed files with 2 additions and 1 deletions
|
|
@ -156,7 +156,8 @@ line about point in the selected window only."
|
|||
:group 'hl-line
|
||||
;; If the global mode is switched on, then `M-x hl-line-mode' should
|
||||
;; switch the mode off in this buffer.
|
||||
(when global-hl-line-mode
|
||||
(when (and global-hl-line-mode
|
||||
(eq arg 'toggle))
|
||||
(setq hl-line-mode nil)
|
||||
(setq-local global-hl-line-mode nil)
|
||||
(global-hl-line-unhighlight))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue