summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--orderless.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/orderless.el b/orderless.el
index b7deb76..01d434d 100644
--- a/orderless.el
+++ b/orderless.el
@@ -275,7 +275,7 @@ regexp."
(defun orderless-without (component)
"Match strings that do *not* match COMPONENT."
- (let ((regexp (cdr (orderless--compile-component component))))
+ (when-let ((regexp (cdr (orderless--compile-component component))))
(lambda (str)
(not (string-match-p regexp str)))))