]> git.eshelyaron.com Git - emacs.git/commit
Eglot: improve treatment of completion items without :sortText (bug#61532)
authorTheodor Thornhill <theo@thornhill.no>
Sun, 19 Feb 2023 11:11:13 +0000 (11:11 +0000)
committerJoão Távora <joaotavora@gmail.com>
Sun, 19 Feb 2023 11:12:48 +0000 (11:12 +0000)
commit893ddd5903e1b0345f22b124e5d6fe8fc89ef6af
tree4d1c4ca194d1bb90ae622b1dda4925706313b7e6
parent871cf33a450a34fcace7fe7c5448fe3043697005
Eglot: improve treatment of completion items without :sortText (bug#61532)

Previously, defaulting to the empty string put candidates without
:sortText to the top of the list.  since string-lessp is safe with nil
arguments, this makes them sort to the end instead.

* lisp/progmodes/eglot.el (eglot-completion-at-point): Simplify.
lisp/progmodes/eglot.el