[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] 14/21: company-sort-by-occurrence: consider the preceding line
From: |
Dmitry Gutov |
Subject: |
[elpa] 14/21: company-sort-by-occurrence: consider the preceding line |
Date: |
Mon, 03 Feb 2014 17:36:17 +0000 |
dgutov pushed a commit to branch master
in repository elpa.
commit 6d94a36dcc5f9bf5af87fdbf36d4135607c0ca8c
Author: Dmitry Gutov <address@hidden>
Date: Sat Feb 1 07:37:11 2014 +0200
company-sort-by-occurrence: consider the preceding line
---
company.el | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/company.el b/company.el
index 14d92a1..dffe7e0 100644
--- a/company.el
+++ b/company.el
@@ -945,8 +945,8 @@ Keywords and function definition names are ignored."
(lambda (candidate)
(when (or
(save-excursion
- (and (zerop (forward-line -1))
- (search-backward candidate (window-start) t)))
+ (progn (forward-line 0)
+ (search-backward candidate (window-start) t)))
(save-excursion
(search-forward candidate (window-end) t)))
(let ((beg (match-beginning 0))
- [elpa] 12/21: company-preview* faces: inherit from company-tooltip-[common-]selection, (continued)
- [elpa] 12/21: company-preview* faces: inherit from company-tooltip-[common-]selection, Dmitry Gutov, 2014/02/03
- [elpa] 15/21: Remove NEWS entry for 9b0d457, it's a bugfix, Dmitry Gutov, 2014/02/03
- [elpa] 17/21: company-capf: strip duplicates, Dmitry Gutov, 2014/02/03
- [elpa] 01/21: company-begin-commands: add `org-self-insert-command', Dmitry Gutov, 2014/02/03
- [elpa] 21/21: Merge commit '67ab56a5469f16652e73667ec3b4f76ff6befee6' from company, Dmitry Gutov, 2014/02/03
- [elpa] 16/21: Don't "transform" twice, Dmitry Gutov, 2014/02/03
- [elpa] 20/21: Remove outdated comment, Dmitry Gutov, 2014/02/03
- [elpa] 02/21: Make dabbrev and dabbrev-code more customizable, Dmitry Gutov, 2014/02/03
- [elpa] 19/21: Fix #56, Dmitry Gutov, 2014/02/03
- [elpa] 04/21: Add company-transformers, Dmitry Gutov, 2014/02/03
- [elpa] 14/21: company-sort-by-occurrence: consider the preceding line,
Dmitry Gutov <=
- [elpa] 13/21: company--continue-failed: require matching input properly, Dmitry Gutov, 2014/02/03
- [elpa] 18/21: Display annotations, Dmitry Gutov, 2014/02/03