branch: master
commit 24bbc85080332c613fbb390af08ff3b76c011b13
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>
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)