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

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

[elpa] 04/16: company-pseudo-tooltip-guard: Invalidate after crossing li


From: Dmitry Gutov
Subject: [elpa] 04/16: company-pseudo-tooltip-guard: Invalidate after crossing line continuation
Date: Sat, 26 Jul 2014 04:53:19 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit 5fdc53504f4c8ef797dbef5f28e61378cfd33dea
Author: Dmitry Gutov <address@hidden>
Date:   Mon Jul 14 06:45:55 2014 +0300

    company-pseudo-tooltip-guard: Invalidate after crossing line continuation
---
 company.el |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/company.el b/company.el
index 9e44c77..554156f 100644
--- a/company.el
+++ b/company.el
@@ -2427,8 +2427,10 @@ Returns a negative number if the tooltip should be 
displayed above point."
     (overlay-put company-pseudo-tooltip-overlay 'window (selected-window))))
 
 (defun company-pseudo-tooltip-guard ()
-  (buffer-substring-no-properties
-   (point) (overlay-start company-pseudo-tooltip-overlay)))
+  (list
+   (save-excursion (beginning-of-visual-line))
+   (buffer-substring-no-properties
+    (point) (overlay-start company-pseudo-tooltip-overlay))))
 
 (defun company-pseudo-tooltip-frontend (command)
   "`company-mode' front-end similar to a tooltip but based on overlays."



reply via email to

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