Prevent nav-flash from causing seizures in term-mode

This commit is contained in:
Henrik Lissner 2017-09-28 18:22:15 +02:00
parent ef66bc3e5e
commit 5319f655b4
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -6,9 +6,10 @@
(let ((point (save-excursion (goto-char (window-start))
(point-marker))))
(apply orig-fn args)
(unless (equal point
(save-excursion (goto-char (window-start))
(point-marker)))
(unless (or (derived-mode-p 'term-mode)
(equal point
(save-excursion (goto-char (window-start))
(point-marker))))
(+doom/blink-cursor))))
;;;###autoload