]> code.delx.au - gnu-emacs-elpa/commitdiff
Assign a face for the tooltip search string
authorMark Oteiza <mvoteiza@udel.edu>
Mon, 4 Aug 2014 22:21:55 +0000 (18:21 -0400)
committerMark Oteiza <mvoteiza@udel.edu>
Mon, 4 Aug 2014 22:21:55 +0000 (18:21 -0400)
company.el

index ac4989234229ac8c727ae3fe4373d1f1eb56862b..577049fbd4dc213c44ac9aa3a2068864146b111e 100644 (file)
@@ -117,6 +117,10 @@ buffer-local wherever it is set."
     (t (:background "green")))
   "Face used for the selection in the tooltip.")
 
+(defface company-tooltip-search
+  '((default :inherit company-tooltip-selection))
+  "Face used for the search string in the tooltip.")
+
 (defface company-tooltip-mouse
   '((default :inherit highlight))
   "Face used for the tooltip item under the mouse.")
@@ -2156,7 +2160,7 @@ If SHOW-VERSION is non-nil, show the version in the echo area."
                              (length company-prefix)))
           (let ((beg (+ margin (match-beginning 0)))
                 (end (+ margin (match-end 0))))
-            (add-text-properties beg end '(face company-tooltip-selection)
+            (add-text-properties beg end '(face company-tooltip-search)
                                  line)
             (when (< beg common)
               (add-text-properties beg common