From 9f45197a0bf806b5591d7ba447f7423dcf75e0fe Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 21 May 2019 17:21:14 -0400 Subject: [PATCH] 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. --- modules/ui/nav-flash/autoload.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/ui/nav-flash/autoload.el b/modules/ui/nav-flash/autoload.el index 465ff6aad..d73eb8036 100644 --- a/modules/ui/nav-flash/autoload.el +++ b/modules/ui/nav-flash/autoload.el @@ -18,9 +18,10 @@ jumping to another part of the file)." or triggered from one of `+nav-flash-exclude-commands'." (unless (or (derived-mode-p 'special-mode 'term-mode) (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) - (setq +nav-flash--last-point (point-marker)))) + (setq +nav-flash--last-point (cons (point-marker) (selected-window))))) ;;;###autoload (defun +nav-flash|delayed-blink-cursor (&rest _)