ui/nav-flash: don't trigger on mouse click

This commit is contained in:
Henrik Lissner 2019-10-29 15:17:09 -04:00
parent 89e617622d
commit effee30138
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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)