dgutov pushed a commit to branch master
in repository elpa.
commit 3427e265fe793fac5924bf3c35a0acd444711824
Author: Dmitry Gutov <[email protected]>
Date: Sun Aug 24 03:05:37 2014 +0400
Add a comment
---
company.el | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/company.el b/company.el
index 9a0c72a..b444493 100644
--- a/company.el
+++ b/company.el
@@ -2456,6 +2456,8 @@ Returns a negative number if the tooltip should be
displayed above point."
(overlay-put ov 'line-prefix "")
(if (/= (overlay-start ov) (overlay-end ov))
(overlay-put ov 'display disp)
+ ;; `display' is usually better (http://debbugs.gnu.org/18285),
+ ;; but it doesn't work when the overlay is empty.
(overlay-put ov 'after-string disp))
(overlay-put ov 'window (selected-window)))))