diff --git a/modules/ui/nav-flash/autoload.el b/modules/ui/nav-flash/autoload.el index 61521bd66..4c1bc201e 100644 --- a/modules/ui/nav-flash/autoload.el +++ b/modules/ui/nav-flash/autoload.el @@ -10,7 +10,8 @@ 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))))) ;;;###autoload (defun +nav-flash-blink-cursor-maybe (&rest _)