[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 8a8aea2 219/399: counsel.el (counsel-company): Use company
From: |
Oleh Krehel |
Subject: |
[elpa] master 8a8aea2 219/399: counsel.el (counsel-company): Use company-prefix |
Date: |
Sat, 20 Jul 2019 14:57:26 -0400 (EDT) |
branch: master
commit 8a8aea24d2f7b60889c5524b530b51874bab04c7
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>
counsel.el (counsel-company): Use company-prefix
Fixes #2054
---
counsel.el | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/counsel.el b/counsel.el
index 0b6df50..d3b6b86 100644
--- a/counsel.el
+++ b/counsel.el
@@ -385,7 +385,7 @@ Update the minibuffer with the amount of lines collected
every
;;** `counsel-company'
(defvar company-candidates)
(defvar company-point)
-(defvar company-common)
+(defvar company-prefix)
(declare-function company-complete "ext:company")
(declare-function company-mode "ext:company")
(declare-function company-complete-common "ext:company")
@@ -399,9 +399,8 @@ Update the minibuffer with the amount of lines collected
every
(unless company-candidates
(company-complete))
(when company-point
- (when (looking-back company-common (line-beginning-position))
- (setq ivy-completion-beg (match-beginning 0))
- (setq ivy-completion-end (match-end 0)))
+ (setq ivy-completion-beg (- company-point (length company-prefix)))
+ (setq ivy-completion-end company-point)
(ivy-read "company cand: " company-candidates
:action #'ivy-completion-in-region-action
:unwind #'company-abort
- [elpa] master 9a2b110 214/399: ivy.el (ivy-insert-current): Insert text without properties, (continued)
- [elpa] master 9a2b110 214/399: ivy.el (ivy-insert-current): Insert text without properties, Oleh Krehel, 2019/07/20
- [elpa] master f1b3fa4 209/399: swiper.el (swiper-isearch): Support swiper-goto-start-of-match, Oleh Krehel, 2019/07/20
- [elpa] master bd958e7 208/399: counsel.el (counsel-org-files): Re-use org-attach-dir, Oleh Krehel, 2019/07/20
- [elpa] master 9c1e1c3 216/399: swiper.el (swiper-isearch-function): Obey ivy-case-fold-search-default, Oleh Krehel, 2019/07/20
- [elpa] master 6f56049 230/399: ivy.el (ivy--minibuffer-index-bounds): Make pure, Oleh Krehel, 2019/07/20
- [elpa] master 9eb5275 227/399: ivy.el (ivy--minibuffer-index-bounds): Extract, Oleh Krehel, 2019/07/20
- [elpa] master f292ed3 226/399: ivy.el (ivy-help): Reveal all Org contents, Oleh Krehel, 2019/07/20
- [elpa] master 3a16cec 223/399: ivy.el (ivy-occur): Don't setq-local ivy--directory, Oleh Krehel, 2019/07/20
- [elpa] master 9e513d0 211/399: swiper.el (swiper-thing-at-point): Add, Oleh Krehel, 2019/07/20
- [elpa] master ecff164 215/399: ivy.el (ivy-insert-current): Minor simplification, Oleh Krehel, 2019/07/20
- [elpa] master 8a8aea2 219/399: counsel.el (counsel-company): Use company-prefix,
Oleh Krehel <=
- [elpa] master fa9acdb 222/399: swiper.el (swiper-isearch-thing-at-point): Add symbol boundaries, Oleh Krehel, 2019/07/20
- [elpa] master 6768214 221/399: ivy.el (ivy--insert-symbol-boundaries): Extract, Oleh Krehel, 2019/07/20
- [elpa] master 2e4f2fb 213/399: Fix grep-occur when using multi-pass re-builders, Oleh Krehel, 2019/07/20
- [elpa] master a9e81f8 220/399: ivy.el: Don't offer virtual buffers for plain switch-to-buffer, Oleh Krehel, 2019/07/20
- [elpa] master 5eea0af 229/399: ivy.el (ivy--minibuffer-index-bounds): Simplify logic, Oleh Krehel, 2019/07/20
- [elpa] master c1ff0d6 228/399: ivy.el: Fix compiler warning, Oleh Krehel, 2019/07/20
- [elpa] master 6ec1126 225/399: ivy.el (ivy-help): Set org-hide-emphasis-markers, Oleh Krehel, 2019/07/20
- [elpa] master cc56ec0 231/399: swiper.el (swiper-isearch-format-function): Add, Oleh Krehel, 2019/07/20
- [elpa] master 6fd1620 235/399: swiper.el (swiper--recenter-p): Extract, Oleh Krehel, 2019/07/20
- [elpa] master 1d08b29 233/399: swiper.el (swiper-isearch): Ensure font lock, Oleh Krehel, 2019/07/20