summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThierry Volpiatto <thievol@posteo.net>2021-01-26 08:48:21 +0100
committerThierry Volpiatto <thievol@posteo.net>2021-01-26 08:53:00 +0100
commitb6e071f7312672b6b2a9d44a98b3f51217d09ea9 (patch)
treecd139a445a69ab0eecd9e4143c66cfb8cf017cd6
parent90616af3450a03b017540d41f1003d9cdf846560 (diff)
Improve matching negation in pattern
-rw-r--r--helm-multi-match.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/helm-multi-match.el b/helm-multi-match.el
index af70eb3c..5ee35d76 100644
--- a/helm-multi-match.el
+++ b/helm-multi-match.el
@@ -202,7 +202,7 @@ previous value stored in `helm-mm--3-pattern-list'."
E.g., ((identity . \"foo\") (not . \"bar\"))."
(unless (string= pattern "")
(cl-loop for pat in (helm-mm-split-pattern pattern)
- collect (if (string= "!" (substring pat 0 1))
+ collect (if (char-equal ?! (aref pat 0))
(cons 'not (substring pat 1))
(cons 'identity pat)))))