]> rtime.felk.cvut.cz Git - sojka/company-mode.git/commitdiff
company--continue: don't pass the new prefix to `company-cancel'
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 26 May 2014 00:30:45 +0000 (03:30 +0300)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 26 May 2014 00:30:45 +0000 (03:30 +0300)
Closes #118

company.el

index 24a7e403c4362463fa4cd201c270a56ff6a5b26a..580304e8b989c2665f23c0b93353dce00e5e78ec 100644 (file)
@@ -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)