branch: externals/orderless
commit edce950fe1353c2284516f7b01bd37bc2d7fa136
Author: Omar Antolín <[email protected]>
Commit: Omar Antolín <[email protected]>

    Capture empty string to avoid highlighting for strict initialism
    
    This fixes #38
---
 orderless.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/orderless.el b/orderless.el
index 01af2fa971..c08c07a50d 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))))
 

Reply via email to