emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 24bbc85 35/66: Fix #809 by looking up `face' as well


From: Dmitry Gutov
Subject: [elpa] master 24bbc85 35/66: Fix #809 by looking up `face' as well
Date: Mon, 5 Nov 2018 18:19:18 -0500 (EST)

branch: master
commit 24bbc85080332c613fbb390af08ff3b76c011b13
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Fix #809 by looking up `face' as well
---
 company-capf.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/company-capf.el b/company-capf.el
index 7e76dfc..409687b 100644
--- a/company-capf.el
+++ b/company-capf.el
@@ -123,7 +123,9 @@
            (while (< pos limit)
              (setq pos
                    (if (< pos 0) 0 (next-property-change pos arg limit)))
-             (setq prop-value (get-text-property pos 'font-lock-face arg)
+             (setq prop-value (or
+                               (get-text-property pos 'face arg)
+                               (get-text-property pos 'font-lock-face arg))
                    faces (if (listp prop-value) prop-value (list prop-value))
                    has-face-p (memq 'completions-common-part faces))
              (cond ((and (not match-start) has-face-p)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]