From ff58823d4866af460fbdcc7c1fe6d430f8b201cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ellis=20Keny=C5=91?= Date: Sun, 7 Mar 2021 19:29:01 +0000 Subject: [PATCH] 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 --- modules/ui/nav-flash/autoload.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 _)