branch: externals/company
commit 783287526a791590bea4f9a23992c2bfebdb4c8d
Author: Dmitry Gutov <dgu...@yandex.ru>
Commit: Dmitry Gutov <dgu...@yandex.ru>

    company-select-next-or-abort: Check the value of company-selection
    
    Fixes #1314
---
 company.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index 5e7471d89a..4c58707a48 100644
--- a/company.el
+++ b/company.el
@@ -2527,7 +2527,8 @@ and invoke the normal binding.
 
 With ARG, move by that many elements."
   (interactive "p")
-  (if (> company-candidates-length 1)
+  (if (or (not company-selection)
+          (> company-candidates-length 1))
       (company-select-next arg)
     (company-abort)
     (company--unread-this-command-keys)))

Reply via email to