Commit d558d9fa authored by João Távora's avatar João Távora

Have pcm styles apply faces to face prop, not font-lock-face

This is the way the basic completion styles work.  This fixes
candidate highlighting in icomplete.

* lisp/minibuffer.el (completion-pcm--hilit-commonality): Apply
faces to 'face property, not font-lock-face.
parent 42eaac31
......@@ -3145,16 +3145,16 @@ one-letter-long matches).")
(while md
(funcall update-score start (car md))
(put-text-property start (pop md)
'font-lock-face 'completions-common-part
'face 'completions-common-part
(setq start (pop md)))
(funcall update-score len len)
(put-text-property start end
'font-lock-face 'completions-common-part
'face 'completions-common-part
(if (> (length str) pos)
(put-text-property pos (1+ pos)
'font-lock-face 'completions-first-difference
'face 'completions-first-difference
(unless (zerop (length str))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment