diff options
| author | Omar Antolín <omar.antolin@gmail.com> | 2020-04-14 17:46:24 -0500 |
|---|---|---|
| committer | Omar Antolín <omar.antolin@gmail.com> | 2020-04-14 17:46:24 -0500 |
| commit | a11302737ea3266fc59d72141eaee5cea36bfc3d (patch) | |
| tree | a91a00c97af5d88a8dd1f0404108869c4af00938 /orderless.el | |
| parent | aad0aa8a8dcf2aa7e8687f34676227c36ff003cf (diff) | |
Keep split-string from modifying global match data
Diffstat (limited to 'orderless.el')
| -rw-r--r-- | orderless.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/orderless.el b/orderless.el index 7b30a4b..c4af89f 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 |
