From 8bf0cdf30a87caf2e38666d2f48a59f3c464934e Mon Sep 17 00:00:00 2001 From: Adam Kruszewski Date: Mon, 3 Jul 2023 11:55:59 +0200 Subject: [PATCH] Replace string-empty-p with string= for melpazoid --- corfu-candidate-overlay.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/corfu-candidate-overlay.el b/corfu-candidate-overlay.el index 592587e..65fefe4 100644 --- a/corfu-candidate-overlay.el +++ b/corfu-candidate-overlay.el @@ -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)." (corfu-candidate-overlay--prepare position) - (unless (string-empty-p candidate) + (unless (string= candidate "") (add-text-properties 0 1 '(cursor 1) candidate)) (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 candidate ;; 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” ;; found candidates, esp. when using templates so the user ;; could see strage results when typing the first character.