[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 20/28: company-pseudo-tooltip-unhide: fix rendering at eob
From: |
Dmitry Gutov |
Subject: |
[elpa] 20/28: company-pseudo-tooltip-unhide: fix rendering at eob |
Date: |
Wed, 27 Aug 2014 01:26:31 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit 8cdc59c68182a5192e68830db2070fa9dd0e4125
Author: Dmitry Gutov <address@hidden>
Date: Sun Aug 24 02:56:47 2014 +0400
company-pseudo-tooltip-unhide: fix rendering at eob
Regression from bb0a1d5
---
company.el | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/company.el b/company.el
index 777dd31..9a0c72a 100644
--- a/company.el
+++ b/company.el
@@ -2443,7 +2443,8 @@ Returns a negative number if the tooltip should be
displayed above point."
(defun company-pseudo-tooltip-hide-temporarily ()
(when (overlayp company-pseudo-tooltip-overlay)
(overlay-put company-pseudo-tooltip-overlay 'line-prefix nil)
- (overlay-put company-pseudo-tooltip-overlay 'display nil)))
+ (overlay-put company-pseudo-tooltip-overlay 'display nil)
+ (overlay-put company-pseudo-tooltip-overlay 'after-string nil)))
(defun company-pseudo-tooltip-unhide ()
(when company-pseudo-tooltip-overlay
@@ -2453,7 +2454,9 @@ Returns a negative number if the tooltip should be
displayed above point."
(overlay-put ov 'priority 1)
;; No (extra) prefix for the first line.
(overlay-put ov 'line-prefix "")
- (overlay-put ov 'display disp)
+ (if (/= (overlay-start ov) (overlay-end ov))
+ (overlay-put ov 'display disp)
+ (overlay-put ov 'after-string disp))
(overlay-put ov 'window (selected-window)))))
(defun company-pseudo-tooltip-guard ()
- [elpa] 10/28: Mention company-tooltip-search in NEWS, (continued)
- [elpa] 10/28: Mention company-tooltip-search in NEWS, Dmitry Gutov, 2014/08/26
- [elpa] 11/28: Use window-screen-lines when available, Dmitry Gutov, 2014/08/26
- [elpa] 05/28: company--show-inline-p: never ignore case, Dmitry Gutov, 2014/08/26
- [elpa] 12/28: Tweak wording, Dmitry Gutov, 2014/08/26
- [elpa] 13/28: Use `posn-actual-col-row' to determine the current col and row, Dmitry Gutov, 2014/08/26
- [elpa] 14/28: Work around http://debbugs.gnu.org/18285, Dmitry Gutov, 2014/08/26
- [elpa] 16/28: company-buffer-lines: handle multiline display better, Dmitry Gutov, 2014/08/26
- [elpa] 17/28: company-input-noop still seems to be needed in the terminal, Dmitry Gutov, 2014/08/26
- [elpa] 18/28: Skip company-buffer-lines tests in terminal, Dmitry Gutov, 2014/08/26
- [elpa] 19/28: company-pseudo-tooltip-unhide: use local vars, Dmitry Gutov, 2014/08/26
- [elpa] 20/28: company-pseudo-tooltip-unhide: fix rendering at eob,
Dmitry Gutov <=
- [elpa] 15/28: Fix the tests, Dmitry Gutov, 2014/08/26
- [elpa] 21/28: Add a comment, Dmitry Gutov, 2014/08/26
- [elpa] 22/28: company--capf-data: use caching, Dmitry Gutov, 2014/08/26
- [elpa] 24/28: Use `company-dabbrev-ignore-case' when searching for candidates, Dmitry Gutov, 2014/08/26
- [elpa] 25/28: Document `company-dabbrev-ignore-case' better, Dmitry Gutov, 2014/08/26
- [elpa] 26/28: company-dabbrev-code-ignore-case: rephrase a bit, Dmitry Gutov, 2014/08/26
- [elpa] 27/28: Bump the version, Dmitry Gutov, 2014/08/26
- [elpa] 28/28: Merge commit 'f4ffe2b47cf6854ff3bc3ca1717efe1258c01547' from company, Dmitry Gutov, 2014/08/26
- [elpa] 23/28: Fix WRT `keep-prefix', Dmitry Gutov, 2014/08/26