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.
This commit is contained in:
Adam Kruszewski 2023-05-24 10:14:58 +02:00
parent 5f3e3fefe4
commit 23a07957bc

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