Highlight the suffix in *Completions* buffer in 'basic' style too
authorDmitry Gutov <dmitry@gutov.dev>
Wed, 12 Jun 2024 21:46:00 +0000 (00:46 +0300)
committerDmitry Gutov <dmitry@gutov.dev>
Wed, 12 Jun 2024 21:46:12 +0000 (00:46 +0300)
* lisp/minibuffer.el (completion-basic-all-completions):
Make sure to highlight the suffix as well (bug#71419).

lisp/minibuffer.el

index f62cb2566b20fba9f54470824e77196d0a7bde2e..144cda8cfdc55d5f11ae4c1734cd2af475a9f75a 100644 (file)
@@ -3816,7 +3816,7 @@ Return the new suffix."
                             'point
                             (substring afterpoint 0 (cdr bounds)))))
          (all (completion-pcm--all-completions prefix pattern table pred)))
-    (completion-hilit-commonality all point (car bounds))))
+    (completion-pcm--hilit-commonality pattern all)))
 
 ;;; Partial-completion-mode style completion.