File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -470,12 +470,14 @@ The MARKERS and PREFIX value will be attached to each candidate."
470
470
; ; boundaries
471
471
((equal (car-safe action) 'boundaries ) nil )
472
472
; ; try-completion
473
- ((null action) (cl-first (member probe (funcall candidates))))
473
+ ((null action)
474
+ (when-let ((cands (funcall candidates)))
475
+ (if (cl-rest cands) probe (cl-first cands))))
474
476
; ; test-completion: not return exact match so that the selection will
475
477
; ; always be shown
476
478
((equal action 'lambda ) nil )
477
479
; ; retrieve candidates
478
- (t (funcall candidates))))
480
+ (( equal action t ) (funcall candidates))))
479
481
:annotation-function #'lsp-completion--annotate
480
482
:company-candidate-kind #'lsp-completion--candidate-kind
481
483
:company-require-match 'never
You can’t perform that action at this time.
0 commit comments