]> git.eshelyaron.com Git - emacs.git/commit
icomplete-completions: Revise computation of prospects-len
authorSean Whitton <spwhitton@spwhitton.name>
Fri, 4 Oct 2024 00:19:40 +0000 (08:19 +0800)
committerEshel Yaron <me@eshelyaron.com>
Sun, 6 Oct 2024 06:49:54 +0000 (08:49 +0200)
commitbb5f8d9665a2dc46ed417223346a28a58b860d45
treeea9b59f603370dbf91c8a779db14ff0fb9a80306
parent6f7806bd696db3924b2df1ef40ecec852d4035bf
icomplete-completions: Revise computation of prospects-len

* lisp/icomplete.el (icomplete-completions): Revise computation of
prospects-len (i) to avoid calling string-width on the entire
buffer-string, which could be slow; and (ii) to better handle minibuffer
prompts with embedded newlines (bug#72826).

(cherry picked from commit a96954b982ddd441ac943bfa48015fb4775c00cb)
lisp/icomplete.el