branch: externals/company
commit 1ca51e5c914fa51d34e51969f886860b3facfd86
Author: Kien Nguyen <kien.n.qu...@gmail.com>
Commit: Kien Nguyen <kien.n.qu...@gmail.com>

    company--continue: also check for company-abort-on-unique-match
---
 company.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index d352e3f..c20475e 100644
--- a/company.el
+++ b/company.el
@@ -1606,7 +1606,8 @@ prefix match (same case) will be prioritized."
                           (- company-point (length company-prefix))))
               (company-calculate-candidates new-prefix ignore-case))))
     (cond
-     ((company--unique-match-p c new-prefix ignore-case)
+     ((and company-abort-on-unique-match
+           (company--unique-match-p c new-prefix ignore-case))
       ;; Handle it like completion was aborted, to differentiate from user
       ;; calling one of Company's commands to insert the candidate,
       ;; not to trigger template expansion, etc.

Reply via email to