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

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

[elpa] master 9e66366 067/173: Fix #404 by blanking out line-prefix agai


From: Dmitry Gutov
Subject: [elpa] master 9e66366 067/173: Fix #404 by blanking out line-prefix again
Date: Thu, 23 Jun 2016 00:28:38 +0000 (UTC)

branch: master
commit 9e66366521cd84428ef0381eaac07caee444983c
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Fix #404 by blanking out line-prefix again
    
    Restore workaround that was removed in 5b1d822, but apparently become 
necessary
    again at least since 05987e68.
---
 company.el |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/company.el b/company.el
index 6bda02e..9bbb28f 100644
--- a/company.el
+++ b/company.el
@@ -2646,6 +2646,7 @@ Returns a negative number if the tooltip should be 
displayed above point."
 (defun company-pseudo-tooltip-hide-temporarily ()
   (when (overlayp company-pseudo-tooltip-overlay)
     (overlay-put company-pseudo-tooltip-overlay 'invisible nil)
+    (overlay-put company-pseudo-tooltip-overlay 'line-prefix nil)
     (overlay-put company-pseudo-tooltip-overlay 'after-string nil)
     (overlay-put company-pseudo-tooltip-overlay 'display nil)))
 
@@ -2655,6 +2656,8 @@ Returns a negative number if the tooltip should be 
displayed above point."
            (disp (overlay-get ov 'company-display)))
       ;; Beat outline's folding overlays, at least.
       (overlay-put ov 'priority 1)
+      ;; No (extra) prefix for the first line.
+      (overlay-put ov 'line-prefix "")
       ;; `display' is better
       ;; (http://debbugs.gnu.org/18285, http://debbugs.gnu.org/20847),
       ;; but it doesn't work on 0-length overlays.



reply via email to

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