Skip to content

Commit ff58823

Browse files
authored
Fix 'wrong type arg: overlayp' error from ivy+nav-flash (#4749)
* Fix for missing overlay Overlay might be nil before being used, so replicate what the package does * Neater for for nav-flash issue * Properly check for the value
1 parent a7427bb commit ff58823

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/ui/nav-flash/autoload.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ jumping to another part of the file)."
1010
(unless (minibufferp)
1111
(nav-flash-show)
1212
;; only show in the current window
13-
(overlay-put compilation-highlight-overlay 'window (selected-window))))
13+
(when (overlayp compilation-highlight-overlay)
14+
(overlay-put compilation-highlight-overlay 'window (selected-window)))))
1415

1516
;;;###autoload
1617
(defun +nav-flash-blink-cursor-maybe (&rest _)

0 commit comments

Comments
 (0)