Skip to content

Commit

Permalink
nav-flash: fix syl20bnr#15617
Browse files Browse the repository at this point in the history
  • Loading branch information
lebensterben committed Jul 26, 2022
1 parent ef912d7 commit fdfd9f1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions layers/+misc/nav-flash/funcs.el
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,14 @@
;; along with this program. If not, see <http://www.gnu.org/licenses/>.

(defun nav-flash//blink-cursor (&rest _)
"Blink the line containing hte point.
"Blink the line containing the point.
This makes it clear where the cursor has landed (typically after a large motion,
like switching windows or jumping to another part of the file)."
(unless (minibufferp)
(nav-flash-show)
;; only show in the current window
(overlay-put compilation-highlight-overlay 'window (selected-window))))
(when (overlayp compilation-highlight-overlay)
(overlay-put compilation-highlight-overlay 'window (selected-window)))))

(defun nav-flash/blink-cursor-maybe (&rest _)
"Like `nav-flash//blink-cursor', but no-ops if any following condition is met.
Expand Down

0 comments on commit fdfd9f1

Please sign in to comment.