emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/company 8a4872a81b 23/24: company-capf--current-boundar


From: ELPA Syncer
Subject: [elpa] externals/company 8a4872a81b 23/24: company-capf--current-boundaries only for matching completions
Date: Tue, 27 Aug 2024 00:57:45 -0400 (EDT)

branch: externals/company
commit 8a4872a81ba6d792eb724c4d28afc976c83d9c8e
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    company-capf--current-boundaries only for matching completions
    
    To avoid popup jumping on failed `require-match`.
---
 company-capf.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/company-capf.el b/company-capf.el
index b58c5678fc..7243b86f7f 100644
--- a/company-capf.el
+++ b/company-capf.el
@@ -208,7 +208,8 @@ so we can't just use the preceding variable instead.")
              (candidates (assoc-default :completions all-result))
              (boundaries (assoc-default :boundaries all-result)))
         (setq company-capf--sorted (functionp sortfun))
-        (setq company-capf--current-boundaries boundaries)
+        (when candidates
+          (setq company-capf--current-boundaries boundaries))
         (when sortfun
           (setq candidates (funcall sortfun candidates)))
         candidates))))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]