mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
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:
@ -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 _)
|
||||||
|
Reference in New Issue
Block a user