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.
master
Adam Kruszewski 2023-05-24 10:14:58 +02:00
parent 5f3e3fefe4
commit 23a07957bc
1 changed files with 2 additions and 1 deletions

View File

@ -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