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

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

[elpa] master 38ef92d 72/78: Force sync when company-require-match is t


From: Dmitry Gutov
Subject: [elpa] master 38ef92d 72/78: Force sync when company-require-match is t
Date: Sun, 18 Feb 2018 07:40:28 -0500 (EST)

branch: master
commit 38ef92d6273113c2b3d2a302129ad37a30f98998
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Force sync when company-require-match is t
    
    #337
---
 company.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index a1fe54d..915f1bd 100644
--- a/company.el
+++ b/company.el
@@ -1224,7 +1224,10 @@ can retrieve meta-data for them."
 
 (defun company--fetch-candidates (prefix)
   (let* ((non-essential (not (company-explicit-action-p)))
-         (c (if company--manual-action
+         (c (if (or company-selection-changed
+                    ;; FIXME: This is not ideal, but we have not managed to 
deal
+                    ;; with these situations in a better way yet.
+                    (company-require-match-p))
                 (company-call-backend 'candidates prefix)
               (company-call-backend-raw 'candidates prefix))))
     (if (not (eq (car c) :async))



reply via email to

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