Merge pull request #3811 from Sbozzolo/develop

ui/nav-flash add vterm to +nav-flash-blink-cursor-maybe
This commit is contained in:
Henrik Lissner 2020-08-23 14:10:20 -04:00 committed by GitHub
commit fbd94d5475
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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)