branch: externals/hotfuzz
commit eed4b913acda9d6d70183ed2ac5446538529c173
Author: Axel Forsman <[email protected]>
Commit: Axel Forsman <[email protected]>
Remove dependency on subr-x
---
hotfuzz.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hotfuzz.el b/hotfuzz.el
index e2b76d2a5e..066e1c49f5 100644
--- a/hotfuzz.el
+++ b/hotfuzz.el
@@ -90,7 +90,7 @@ and ND/PD respectively may alias."
;;;###autoload
(defun hotfuzz-filter (string candidates)
"Filter CANDIDATES that match STRING and sort by the match costs."
- (if (or (> (length string) hotfuzz--max-needle-len) (string-empty-p string))
+ (if (or (> (length string) hotfuzz--max-needle-len) (string= string ""))
candidates
(let ((re (concat "^" (mapconcat (lambda (char)
(format "[^%1$s]*%1$s"
@@ -144,7 +144,7 @@ HAYSTACK has to be a match according to `hotfuzz-filter'."
#'completion-flex--make-flex-pattern))
(case-fold-search completion-ignore-case))
(when all
- (nconc (if (or (> (length string) hotfuzz--max-needle-len)
(string-empty-p string))
+ (nconc (if (or (> (length string) hotfuzz--max-needle-len) (string=
string ""))
all
(mapcar (lambda (x)
(setq x (copy-sequence x))