Replace string-empty-p with string= for melpazoid
This commit is contained in:
		
							parent
							
								
									55823657d4
								
							
						
					
					
						commit
						8bf0cdf30a
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -104,7 +104,7 @@ face is set to either `corfu-candidate-overlay-face-exact-match'
 | 
				
			||||||
\(exactly one match) or `corfu-candidate-overlay-face' (more matches)."
 | 
					\(exactly one match) or `corfu-candidate-overlay-face' (more matches)."
 | 
				
			||||||
  (corfu-candidate-overlay--prepare position)
 | 
					  (corfu-candidate-overlay--prepare position)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  (unless (string-empty-p candidate)
 | 
					  (unless (string= candidate "")
 | 
				
			||||||
    (add-text-properties 0 1 '(cursor 1) candidate))
 | 
					    (add-text-properties 0 1 '(cursor 1) candidate))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  (overlay-put corfu-candidate-overlay--overlay  'window (selected-window))
 | 
					  (overlay-put corfu-candidate-overlay--overlay  'window (selected-window))
 | 
				
			||||||
| 
						 | 
					@ -177,7 +177,7 @@ and `corfu-candidate-overlay-face' faces for customization"
 | 
				
			||||||
                      ;; need candidate, it should be present if we got here, but safety-first
 | 
					                      ;; need candidate, it should be present if we got here, but safety-first
 | 
				
			||||||
                      candidate
 | 
					                      candidate
 | 
				
			||||||
                      ;; the prefix can't be empty (in case of corfu-auto-prefix equal 0)
 | 
					                      ;; the prefix can't be empty (in case of corfu-auto-prefix equal 0)
 | 
				
			||||||
                      (not (string-empty-p prefix))
 | 
					                      (not (string= prefix ""))
 | 
				
			||||||
                      ;; prefix need to match the candidate as there are „fuzzy”
 | 
					                      ;; prefix need to match the candidate as there are „fuzzy”
 | 
				
			||||||
                      ;; found candidates, esp. when using templates so the user
 | 
					                      ;; found candidates, esp. when using templates so the user
 | 
				
			||||||
                      ;; could see strage results when typing the first character.
 | 
					                      ;; could see strage results when typing the first character.
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue