[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 05/16: company-pseudo-tooltip-guard: Stabilize when the popup is
From: |
Dmitry Gutov |
Subject: |
[elpa] 05/16: company-pseudo-tooltip-guard: Stabilize when the popup is displayed up |
Date: |
Sat, 26 Jul 2014 04:53:20 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit b1a3ae8544dd8a5a61ed49485bb3cf31b921b10e
Author: Dmitry Gutov <address@hidden>
Date: Mon Jul 14 06:54:35 2014 +0300
company-pseudo-tooltip-guard: Stabilize when the popup is displayed up
---
company.el | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/company.el b/company.el
index 554156f..d8c2ae7 100644
--- a/company.el
+++ b/company.el
@@ -5,7 +5,7 @@
;; Author: Nikolaj Schumacher
;; Maintainer: Dmitry Gutov <address@hidden>
;; URL: http://company-mode.github.io/
-;; Version: 0.9.0-cvs
+;; Version: 0.8.2-cvs
;; Keywords: abbrev, convenience, matching
;; Package-Requires: ((emacs "24.1") (cl-lib "0.5"))
@@ -2429,8 +2429,9 @@ Returns a negative number if the tooltip should be
displayed above point."
(defun company-pseudo-tooltip-guard ()
(list
(save-excursion (beginning-of-visual-line))
- (buffer-substring-no-properties
- (point) (overlay-start company-pseudo-tooltip-overlay))))
+ (let ((ov company-pseudo-tooltip-overlay))
+ (when (>= (overlay-get ov 'company-height) 0)
+ (buffer-substring-no-properties (point) (overlay-start ov))))))
(defun company-pseudo-tooltip-frontend (command)
"`company-mode' front-end similar to a tooltip but based on overlays."
- [elpa] branch master updated (68ccff3 -> ca001a5), Dmitry Gutov, 2014/07/26
- [elpa] 03/16: company-pseudo-tooltip-frontend: Small rewrite, Dmitry Gutov, 2014/07/26
- [elpa] 06/16: +1 char, -1 line, Dmitry Gutov, 2014/07/26
- [elpa] 05/16: company-pseudo-tooltip-guard: Stabilize when the popup is displayed up,
Dmitry Gutov <=
- [elpa] 09/16: company-sort-by-occurrence: continue search after predicate fails, Dmitry Gutov, 2014/07/26
- [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