ui/nav-flash add vterm to +nav-flash-blink-cursor-maybe

(vterm-mode is not derived from term-mode)
This commit is contained in:
Gabriele Bozzola 2020-08-23 08:10:48 -07:00
parent c497cdabc7
commit afd495b7e1

View file

@ -14,11 +14,12 @@ jumping to another part of the file)."
;;;###autoload
(defun +nav-flash-blink-cursor-maybe (&rest _)
"Like `+nav-flash-blink-cursor', but no-ops if in special-mode or term-mode,
or triggered from one of `+nav-flash-exclude-commands'."
"Like `+nav-flash-blink-cursor', but no-ops if in special-mode, term-mode,
vterm-mode, or triggered from one of `+nav-flash-exclude-commands'."
(unless (or (memq this-command +nav-flash-exclude-commands)
(bound-and-true-p so-long-minor-mode)
(derived-mode-p 'so-long-mode 'special-mode 'term-mode)
(derived-mode-p 'so-long-mode 'special-mode 'term-mode
'vterm-mode)
(and (equal (point-marker) (car +nav-flash--last-point))
(equal (selected-window) (cdr +nav-flash--last-point))))
(+nav-flash-blink-cursor)