emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/orderless f49a0faceb 128/204: Off by one error in order


From: ELPA Syncer
Subject: [elpa] externals/orderless f49a0faceb 128/204: Off by one error in orderless-without-literal
Date: Tue, 11 Jan 2022 12:58:23 -0500 (EST)

branch: externals/orderless
commit f49a0facebcba9621fb7f2efad67b3dff5774b75
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>

    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

[Prev in Thread] Current Thread [Next in Thread]