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

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

[elpa] 14/52: company--continue: don't pass the new prefix to `company-c


From: Dmitry Gutov
Subject: [elpa] 14/52: company--continue: don't pass the new prefix to `company-cancel'
Date: Tue, 01 Jul 2014 11:53:11 +0000

dgutov pushed a commit to branch master
in repository elpa.

commit 83430dd9ccd5b696a04ddf47b4277a7f09cbd221
Author: Dmitry Gutov <address@hidden>
Date:   Mon May 26 03:30:45 2014 +0300

    company--continue: don't pass the new prefix to `company-cancel'
    
    Closes #118
---
 company.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/company.el b/company.el
index 24a7e40..580304e 100644
--- a/company.el
+++ b/company.el
@@ -1331,7 +1331,9 @@ Keywords and function definition names are ignored."
     (cond
      ((eq c t)
       ;; t means complete/unique.
-      (company-cancel new-prefix))
+      ;; Handle it like completion was aborted, to differentiate from user
+      ;; calling one of Company's commands to insert the candidate.
+      (company-cancel 'unique))
      ((consp c)
       ;; incremental match
       (setq company-prefix new-prefix)



reply via email to

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