summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Antolín <omar.antolin@gmail.com>2021-02-12 10:45:54 -0600
committerOmar Antolín <omar.antolin@gmail.com>2021-02-12 10:45:54 -0600
commitedce950fe1353c2284516f7b01bd37bc2d7fa136 (patch)
treeeafe72be79b2acc8a9e2e27bc75cc9da16c94432
parent0ebc884693e8182e182e297f61a2f9a7620980b6 (diff)
Capture empty string to avoid highlighting for strict initialism
This fixes #38
-rw-r--r--orderless.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/orderless.el b/orderless.el
index 01af2fa..c08c07a 100644
--- a/orderless.el
+++ b/orderless.el
@@ -235,7 +235,7 @@ words of the candidate, respectively."
(orderless--separated-by
'(seq (zero-or-more word) word-end (zero-or-more (not alpha)))
(cl-loop for char across component collect `(seq word-start ,char))
- (when anchored '(seq buffer-start (zero-or-more (not alpha))))
+ (when anchored '(seq (group buffer-start) (zero-or-more (not alpha))))
(when (eq anchored 'both)
'(seq (zero-or-more word) word-end (zero-or-more (not alpha)) eol))))