From: Dmitry Gutov Date: Sat, 23 Aug 2014 23:05:37 +0000 (+0400) Subject: Add a comment X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/3427e265fe793fac5924bf3c35a0acd444711824 Add a comment --- diff --git a/company.el b/company.el index 9a0c72ad3..b444493c4 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)))))