[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."
- [elpa] 07/16: Deprecate setting company-idle-delay to t, (continued)
- [elpa] 07/16: Deprecate setting company-idle-delay to t, Dmitry Gutov, 2014/07/26
- [elpa] 08/16: company-sort-by-occurrence: allow customizing the weighing logic, Dmitry Gutov, 2014/07/26
- [elpa] 11/16: company-css-property-value-regexp: prohibit opening curlies, Dmitry Gutov, 2014/07/26
- [elpa] 13/16: Fix company-occurrence-weight-function, Dmitry Gutov, 2014/07/26
- [elpa] 12/16: company-css-property-values: delete duplicates, Dmitry Gutov, 2014/07/26
- [elpa] 10/16: company-capf: get rid of caching last capf-data, Dmitry Gutov, 2014/07/26
- [elpa] 14/16: Fix tests in batch mode, Dmitry Gutov, 2014/07/26
- [elpa] 01/16: company-frontends-set: never modify VALUE destructively, Dmitry Gutov, 2014/07/26
- [elpa] 15/16: Release 0.8.2, Dmitry Gutov, 2014/07/26
- [elpa] 16/16: Merge commit 'b1d019a4c815ac8bdc240d69eaa74eb4e34640e8' from company-master, Dmitry Gutov, 2014/07/26
- [elpa] 04/16: company-pseudo-tooltip-guard: Invalidate after crossing line continuation,
Dmitry Gutov <=
- [elpa] 02/16: Fix popup when prefix is split by line continuation, Dmitry Gutov, 2014/07/26