]> git.eshelyaron.com Git - emacs.git/commit
Fix bug in flex completion style's sorting and simplify
authorJoão Távora <joaotavora@gmail.com>
Sun, 22 Dec 2019 21:51:08 +0000 (22:51 +0100)
committerJoão Távora <joaotavora@gmail.com>
Sun, 22 Dec 2019 21:57:16 +0000 (22:57 +0100)
commitdf3fe4e275205adbf57833552f6899d4810450fe
tree5792d0faa8be4c02b964cb63ea989dd48a89352b
parent7b3b27eef1325b41187f2e9cc898644d5eae9ff3
Fix bug in flex completion style's sorting and simplify

This previous commit targetting this function introduced a bug whereby
the completion table's sorting function wouldn't be called.  That is
fixed by this commit, which also simplifies the function further: it
now skips re-sorting the completions completely if there is no
minibuffer input at all (in other words, when flex isn't doing
anything useful).

* lisp/minibuffer.el (completion--flex-adjust-metadata): Simplify.
lisp/minibuffer.el