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

    Keep split-string from modifying global match data
---
 orderless.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/orderless.el b/orderless.el
index 7b30a4b188..c4af89fa9d 100644
--- a/orderless.el
+++ b/orderless.el
@@ -58,7 +58,7 @@
   (let* ((lim (car (completion-boundaries string table pred "")))
          (prefix (substring string 0 lim))
          (all (all-completions prefix table pred))
-         (regexps (split-string (substring string lim))))
+         (regexps (save-match-data (split-string (substring string limit)))))
     (when minibuffer-completing-file-name
       (setq all (completion-pcm--filename-try-filter all)))
     (condition-case nil

Reply via email to