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:
		
							parent
							
								
									5f3e3fefe4
								
							
						
					
					
						commit
						23a07957bc
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue