[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ELPA-diffs] [elpa] 08/12: company--create-lines: Clear the old offset w
From: |
Dmitry Gutov |
Subject: |
[ELPA-diffs] [elpa] 08/12: company--create-lines: Clear the old offset when appropriate |
Date: |
Sat, 25 Jan 2014 11:35:48 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit d05012875f12a74edfa602bbb7093e1195003160
Author: Dmitry Gutov <address@hidden>
Date: Sat Jan 25 12:47:43 2014 +0200
company--create-lines: Clear the old offset when appropriate
---
company.el | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/company.el b/company.el
index 8a16100..1c3ab9e 100644
--- a/company.el
+++ b/company.el
@@ -1841,6 +1841,10 @@ Example: \(company-begin-with '\(\"foo\" \"foobar\"
\"foobarbaz\"\)\)"
scrollbar-bounds
new)
+ ;; Maybe clear old offset.
+ (when (<= len (+ company-tooltip-offset limit))
+ (setq company-tooltip-offset 0))
+ (message "offset interm %s" company-tooltip-offset)
;; Scroll to offset.
(if (eq company-tooltip-offset-display 'lines)
(setq limit (company-tooltip--lines-update-offset selection len limit))
- [ELPA-diffs] [elpa] branch master updated (324e000 -> c87035c), Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 06/12: company-select-mouse: update for when scrollbar is used, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 03/12: company--numbered-line: span tooltip face to the margins, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 01/12: Fix #49, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 08/12: company--create-lines: Clear the old offset when appropriate,
Dmitry Gutov <=
- [ELPA-diffs] [elpa] 07/12: company--create-lines: only reserve width for numbers when they'll be displayed, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 04/12: {cutoff, offset}, {numbered, position}-line, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 09/12: * company-capf.el (company--capf-data): Don't get confused by lambda exps., Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 10/12: Release 0.6.14, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 11/12: Remove leftover message statement, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 02/12: Render the popup with margins, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 05/12: Render scrollbar on the side of the tooltip, Dmitry Gutov, 2014/01/25
- [ELPA-diffs] [elpa] 12/12: Merge commit '8dc8f9525714db66f659a2a51322345068764bd3' from company, Dmitry Gutov, 2014/01/25