Backport: * lisp/ido.el (ido-set-matches-1): Fix split-string args to

avoid performance issue.

Fixes: debbugs:12796
This commit is contained in:
Leo Liu 2012-11-10 22:55:09 +08:00
parent af8bf5b3c0
commit e4e4688922
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2012-11-10 Leo Liu <sdl.web@gmail.com>
* ido.el (ido-set-matches-1): Fix split-string args to avoid
performance issue. (Bug#12796)
2012-11-10 Glenn Morris <rgm@gnu.org>
* term.el (term-default-fg-color, term-default-bg-color):

View file

@ -3764,7 +3764,7 @@ This is to make them appear as if they were \"virtual buffers\"."
ido-enable-flex-matching
(> (length ido-text) 1)
(not ido-enable-regexp))
(setq re (mapconcat #'regexp-quote (split-string ido-text "") ".*"))
(setq re (mapconcat #'regexp-quote (split-string ido-text "" t) ".*"))
(if ido-enable-prefix
(setq re (concat "\\`" re)))
(mapc