From 23a07957bce327d30fa96ab6693b6793864ecb0a Mon Sep 17 00:00:00 2001 From: Adam Kruszewski Date: Wed, 24 May 2023 10:14:58 +0200 Subject: [PATCH] Fix not hiding the overlay even when corfu overlay is not shown corfu--frame can be nil so had to take this into account as well. --- corfu-candidate-overlay.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/corfu-candidate-overlay.el b/corfu-candidate-overlay.el index 3516d78..b00daa4 100644 --- a/corfu-candidate-overlay.el +++ b/corfu-candidate-overlay.el @@ -199,7 +199,8 @@ ;; we are not in minibuffer. (not (minibuffer-window-active-p (selected-window))) ;; corfu menu shown - (and (frame-live-p corfu--frame) (frame-visible-p corfu--frame)) + (or (not corfu--frame) + (and (frame-live-p corfu--frame) (frame-visible-p corfu--frame))) (not corfu-auto) ;; don't work with corfu-auto ;; and the command is not one of insert or delete. (not (or