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

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

[elpa] externals/company 783287526a: company-select-next-or-abort: Check


From: ELPA Syncer
Subject: [elpa] externals/company 783287526a: company-select-next-or-abort: Check the value of company-selection
Date: Fri, 25 Mar 2022 20:57:20 -0400 (EDT)

branch: externals/company
commit 783287526a791590bea4f9a23992c2bfebdb4c8d
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@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

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