]> code.delx.au - gnu-emacs-elpa/commitdiff
company-fill-propertize: Don't highlight match beg till common part
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 9 Jan 2015 14:24:32 +0000 (17:24 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 9 Jan 2015 14:24:32 +0000 (17:24 +0300)
It's more confusing than useful. We already highlight the common part.

company.el

index a92f8373191270f7e5e42c692cc5935eaacecc92..2d1c9d15e544db64b0d89c7dce45adfacc3f237d 100644 (file)
@@ -2184,11 +2184,7 @@ If SHOW-VERSION is non-nil, show the version in the echo area."
           (let ((beg (+ margin (match-beginning 0)))
                 (end (+ margin (match-end 0))))
             (add-text-properties beg end '(face company-tooltip-search)
-                                 line)
-            (when (< beg common)
-              (add-text-properties beg common
-                                   '(face company-tooltip-common-selection)
-                                   line)))
+                                 line))
         (add-text-properties 0 width '(face company-tooltip-selection
                                        mouse-face company-tooltip-selection)
                              line)