Fix switch-window hooks when switching with the mouse

And moved it to ui/nav-flash, which is what this code was introduced to
fix in the first place!
This commit is contained in:
Henrik Lissner 2018-03-27 02:50:38 -04:00
parent b685baeb64
commit 2364e97285
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 2 additions and 2 deletions

View file

@ -16,7 +16,8 @@
(defun +nav-flash/blink-cursor (&rest _)
"Blink current line using `nav-flash'."
(interactive)
(unless (minibufferp)
(unless (or (minibufferp)
(memq this-command '(mouse-set-point evil-mouse-drag-region)))
(nav-flash-show)
;; only show in the current window
(overlay-put compilation-highlight-overlay 'window (selected-window))))