commit 4f365dc562c8c5642719faf85b7536278c561d2e
parent 8c97f80c533e223ab0361a76ad05278dfed09673
Author: Iqbal Ansari <iqbalansari02@yahoo.com>
Date: Sat, 1 Apr 2017 22:24:55 +0530
Guard against non-overlay values of 'company-pseudo-tooltip-overlay'
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/emojify.el b/emojify.el
@@ -1983,7 +1983,7 @@ property to render its pop, this results into a `display' property inside
`display' property, however Emacs ignores recursive text properties. Using
`after-string' works as well as `display' while allowing the emojis to be
displayed."
- (when (and emojify-mode emojify-company-tooltips-p company-pseudo-tooltip-overlay)
+ (when (and emojify-mode emojify-company-tooltips-p (overlayp (bound-and-true-p company-pseudo-tooltip-overlay)))
(let* ((ov company-pseudo-tooltip-overlay)
(disp (or (overlay-get ov 'display)
(overlay-get ov 'after-string)))