]> git.eshelyaron.com Git - emacs.git/commit
Fix "first-differente" face in completion-pcm--hilit-commonality scratch/bug-42149-funny-pcm-completion-scores
authorJoão Távora <joaotavora@gmail.com>
Tue, 29 Dec 2020 13:31:46 +0000 (13:31 +0000)
committerJoão Távora <joaotavora@gmail.com>
Tue, 29 Dec 2020 13:31:46 +0000 (13:31 +0000)
commit03c160fb1573107586355e851c111326debfe95a
tree38c364d6eea742bb2a94666bdbdef342e730561a
parentd8c596f7309bd6fd6e127b8027dfb4c508afd2ea
Fix "first-differente" face in completion-pcm--hilit-commonality

Fixes: bug#42149
Depending on the position of point in the completion and the
completion style being used, it may or may not make sense for this
face to appear immediately after point.  This patch assumes that it
should appear in the first non-matched character after point, which
may likely be the next one to type to disambiguate between two or more
completions.

Suggested by Dario Gjorgjevski <dario.gjorgjevski@gmail.com>.

* lisp/minibuffer.el (completion-pcm--hilit-commonality): Fix
occasional misplacement of completions-first-differente.
lisp/minibuffer.el