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

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

[elpa] master b74f329 22/29: Track the changes in window width


From: Dmitry Gutov
Subject: [elpa] master b74f329 22/29: Track the changes in window width
Date: Tue, 28 Mar 2017 20:50:37 -0400 (EDT)

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

    Track the changes in window width
    
    Fixes #615.
---
 company.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index 8c4ccac..e8d8af7 100644
--- a/company.el
+++ b/company.el
@@ -2848,8 +2848,9 @@ Returns a negative number if the tooltip should be 
displayed above point."
       (overlay-put ov 'window (selected-window)))))
 
 (defun company-pseudo-tooltip-guard ()
-  (cons
+  (list
    (save-excursion (beginning-of-visual-line))
+   (window-width)
    (let ((ov company-pseudo-tooltip-overlay)
          (overhang (save-excursion (end-of-visual-line)
                                    (- (line-end-position) (point)))))



reply via email to

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