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

[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."



reply via email to

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