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

    Off by one error in orderless-without-literal
---
 orderless.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/orderless.el b/orderless.el
index ecd89c7bbf..d4fe98a1e1 100644
--- a/orderless.el
+++ b/orderless.el
@@ -313,8 +313,8 @@ at a word boundary in the candidate.  This is similar to the
    `(seq
      (group string-start)               ; highlight nothing!
      (zero-or-more
-      (or ,@(cl-loop for i from 1 below (length component)
-                     collect `(seq ,(substring component 1 i)
+      (or ,@(cl-loop for i below (length component)
+                     collect `(seq ,(substring component 0 i)
                                    (or (not (any ,(aref component i)))
                                        string-end)))))
      string-end)))

Reply via email to