[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/company 426e1830ff 06/30: company--unique-match-p: Also
From: |
ELPA Syncer |
Subject: |
[elpa] externals/company 426e1830ff 06/30: company--unique-match-p: Also include suffix |
Date: |
Sat, 13 Jul 2024 00:57:50 -0400 (EDT) |
branch: externals/company
commit 426e1830ff73f23c36aa73b03277f01e64781881
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>
company--unique-match-p: Also include suffix
---
company.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/company.el b/company.el
index 8a4f6430ef..c2d276c2b8 100644
--- a/company.el
+++ b/company.el
@@ -1635,11 +1635,11 @@ update if FORCE-UPDATE."
;; Only now apply the predicate and transformers.
(company--postprocess-candidates candidates)))
-(defun company--unique-match-p (candidates prefix ignore-case)
+(defun company--unique-match-p (candidates prefix suffix ignore-case)
(and candidates
(not (cdr candidates))
(eq t (compare-strings (car candidates) nil nil
- prefix nil nil ignore-case))
+ (concat prefix suffix) nil nil ignore-case))
(not (eq (company-call-backend 'kind (car candidates))
'snippet))))
@@ -2269,7 +2269,7 @@ For more details see `company-insertion-on-trigger' and
((eq c 'new-input) ; Keep the old completions, company-point, prefix.
t)
((and company-abort-on-unique-match
- (company--unique-match-p c new-prefix ignore-case))
+ (company--unique-match-p c new-prefix new-suffix ignore-case))
;; Handle it like completion was aborted, to differentiate from user
;; calling one of Company's commands to insert the candidate,
;; not to trigger template expansion, etc.
@@ -2326,7 +2326,7 @@ For more details see `company-insertion-on-trigger' and
(when company--manual-action
(message "No completion found")))
((and company-abort-on-unique-match
- (company--unique-match-p c company-prefix ignore-case)
+ (company--unique-match-p c company-prefix company-suffix
ignore-case)
(if company--manual-action
;; If `company-manual-begin' was called, the user
;; really wants something to happen. Otherwise...
- [elpa] externals/company updated (8d2ca28a16 -> 31f7ad52e4), ELPA Syncer, 2024/07/13
- [elpa] externals/company 22551866cc 03/30: Switch to non-obsolete function, ELPA Syncer, 2024/07/13
- [elpa] externals/company b5db1934ce 08/30: company--capf-post-completion: Make sure to replace the suffix, ELPA Syncer, 2024/07/13
- [elpa] externals/company 01e82364bf 23/30: company-post-command: Refresh more often, ELPA Syncer, 2024/07/13
- [elpa] externals/company 78ed92db96 14/30: Fix "Attempt to modify read-only object", ELPA Syncer, 2024/07/13
- [elpa] externals/company ff6107bde3 04/30: company-inhibit-inside-symbols: New option, ELPA Syncer, 2024/07/13
- [elpa] externals/company 426e1830ff 06/30: company--unique-match-p: Also include suffix,
ELPA Syncer <=
- [elpa] externals/company d7e77b9673 01/30: #1106 #340 Complete inside symbols, ELPA Syncer, 2024/07/13
- [elpa] externals/company 7ed2baeedd 05/30: Merge branch 'master' into completion_inside_symbol, ELPA Syncer, 2024/07/13
- [elpa] externals/company ebe5244443 07/30: Merge branch 'master' into completion_inside_symbol, ELPA Syncer, 2024/07/13
- [elpa] externals/company 10fcb21d46 09/30: Remove suffix after completion by company-dabbrev-code too, ELPA Syncer, 2024/07/13
- [elpa] externals/company 2fefdc7ce3 02/30: Fix test failures, ELPA Syncer, 2024/07/13
- [elpa] externals/company 436b0d6247 10/30: New backend command `adjust-boundaries`, ELPA Syncer, 2024/07/13
- [elpa] externals/company 477799b362 18/30: Make suffix matching use "proper suffix" logic by default, ELPA Syncer, 2024/07/13
- [elpa] externals/company a011dbd892 27/30: Update company-files tests, ELPA Syncer, 2024/07/13
- [elpa] externals/company 277640481a 19/30: Render the "preview" overlay over the matching suffix text, ELPA Syncer, 2024/07/13
- [elpa] externals/company 54b0148ce4 16/30: Fix bytecomp warnings, ELPA Syncer, 2024/07/13