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

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

[elpa] externals/orderless a11302737e 018/204: Keep split-string from mo


From: ELPA Syncer
Subject: [elpa] externals/orderless a11302737e 018/204: Keep split-string from modifying global match data
Date: Tue, 11 Jan 2022 12:58:13 -0500 (EST)

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

    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

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