[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/ivy 4c370d6677 08/10: Refactored counsel-company simpli
From: |
Basil L. Contovounesios |
Subject: |
[elpa] externals/ivy 4c370d6677 08/10: Refactored counsel-company simplifying and removing uneeded code. |
Date: |
Sun, 11 Sep 2022 08:15:33 -0400 (EDT) |
branch: externals/ivy
commit 4c370d66776bd5145264497408fc67ee2763df3c
Author: José Júnior <jose.junior@wildlifestudios.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>
Refactored counsel-company simplifying and removing uneeded code.
Fixes #2988
Fixes #2805
---
counsel.el | 22 +++++-----------------
1 file changed, 5 insertions(+), 17 deletions(-)
diff --git a/counsel.el b/counsel.el
index 8c216e8533..7f7e6fd16a 100644
--- a/counsel.el
+++ b/counsel.el
@@ -369,23 +369,11 @@ Update the minibuffer with the amount of lines collected
every
(company-mode 1)
(unless company-candidates
(company-complete))
- (let ((len (cond ((let (l)
- (and company-common
- (string= company-common
- (downcase
- (buffer-substring
- (- (point) (setq l (length
company-common)))
- (point))))
- (setq company-prefix company-common)
- l)))
- (company-prefix
- (length company-prefix)))))
- (when len
- (setq ivy-completion-beg (- (point) len))
- (setq ivy-completion-end (point))
- (ivy-read "Candidate: " company-candidates
- :action 'company-finish
- :caller 'counsel-company))))
+ (company--continue)
+ (when company-candidates
+ (ivy-read "Candidate: " company-candidates
+ :action 'company-finish
+ :caller 'counsel-company)))
(ivy-configure 'counsel-company
:display-transformer-fn #'counsel--company-display-transformer
- [elpa] externals/ivy updated (166b3161a3 -> d9c2053316), Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy 2c23dae5ea 01/10: counsel.el (counsel--imenu-candidates): Specialize python-mode, Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy e322890809 05/10: ivy.el (ivy-occur-flush-lines): Add, Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy fa2f99bdc6 06/10: Fix for issue #2805 by using company-finish on counsel-company., Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy 2cfccf44a8 07/10: Fix company-prefix and company-common when using counsel-company., Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy d9c2053316 10/10: Merge branch 'master' into externals/ivy, Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy e9c0fb953d 09/10: Clean up compatibility of recent changes, Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy 88715a5e1e 04/10: counsel.el (counsel-git-history): Add, Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy 4c370d6677 08/10: Refactored counsel-company simplifying and removing uneeded code.,
Basil L. Contovounesios <=
- [elpa] externals/ivy ee7f7f8c79 02/10: ivy-overlay.el (ivy-display-function-overlay): Check org offset based on Emacs version, Basil L. Contovounesios, 2022/09/11
- [elpa] externals/ivy b85f7840a2 03/10: counsel.el (counsel-yank-pop-action): Adjust for vterm-mode, Basil L. Contovounesios, 2022/09/11