ui/nav-flash: improve conditional blinking on jump
Sometimes it wouldn't blink when the motion occurred within the same window. This ensures more consistency.
This commit is contained in:
parent
efb06ee42f
commit
9f45197a0b
1 changed files with 3 additions and 2 deletions
|
@ -18,9 +18,10 @@ jumping to another part of the file)."
|
||||||
or triggered from one of `+nav-flash-exclude-commands'."
|
or triggered from one of `+nav-flash-exclude-commands'."
|
||||||
(unless (or (derived-mode-p 'special-mode 'term-mode)
|
(unless (or (derived-mode-p 'special-mode 'term-mode)
|
||||||
(memq this-command +nav-flash-exclude-commands)
|
(memq this-command +nav-flash-exclude-commands)
|
||||||
(equal (point-marker) +nav-flash--last-point))
|
(and (equal (point-marker) (car +nav-flash--last-point))
|
||||||
|
(equal (selected-window) (cdr +nav-flash--last-point))))
|
||||||
(+nav-flash-blink-cursor)
|
(+nav-flash-blink-cursor)
|
||||||
(setq +nav-flash--last-point (point-marker))))
|
(setq +nav-flash--last-point (cons (point-marker) (selected-window)))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +nav-flash|delayed-blink-cursor (&rest _)
|
(defun +nav-flash|delayed-blink-cursor (&rest _)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue