diff options
author | Thierry Volpiatto <thievol@posteo.net> | 2021-01-26 08:48:21 +0100 |
---|---|---|
committer | Thierry Volpiatto <thievol@posteo.net> | 2021-01-26 08:53:00 +0100 |
commit | b6e071f7312672b6b2a9d44a98b3f51217d09ea9 (patch) | |
tree | cd139a445a69ab0eecd9e4143c66cfb8cf017cd6 | |
parent | 90616af3450a03b017540d41f1003d9cdf846560 (diff) |
Improve matching negation in pattern
-rw-r--r-- | helm-multi-match.el | 2 |
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))))) |