mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
ui/nav-flash: don't trigger on mouse click
This commit is contained in:
@ -16,7 +16,8 @@ jumping to another part of the file)."
|
|||||||
(defun +nav-flash-blink-cursor-maybe (&rest _)
|
(defun +nav-flash-blink-cursor-maybe (&rest _)
|
||||||
"Like `+nav-flash-blink-cursor', but no-ops if in special-mode or term-mode,
|
"Like `+nav-flash-blink-cursor', but no-ops if in special-mode or term-mode,
|
||||||
or triggered from one of `+nav-flash-exclude-commands'."
|
or triggered from one of `+nav-flash-exclude-commands'."
|
||||||
(unless (or (bound-and-true-p so-long-minor-mode)
|
(unless (or (memq this-command '(mouse-drag-region evil-mouse-drag-region))
|
||||||
|
(bound-and-true-p so-long-minor-mode)
|
||||||
(eq major-mode 'so-long-mode)
|
(eq major-mode 'so-long-mode)
|
||||||
(derived-mode-p 'special-mode 'term-mode)
|
(derived-mode-p 'special-mode 'term-mode)
|
||||||
(memq this-command +nav-flash-exclude-commands)
|
(memq this-command +nav-flash-exclude-commands)
|
||||||
|
Reference in New Issue
Block a user