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

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

[elpa] externals/company 17a7221df0 1/2: company-complete: Return this-c


From: ELPA Syncer
Subject: [elpa] externals/company 17a7221df0 1/2: company-complete: Return this-command in case of success
Date: Fri, 13 Oct 2023 21:57:38 -0400 (EDT)

branch: externals/company
commit 17a7221df0ee8172e2ba8df580466d730ef05343
Author: Dmitry Gutov <dmitry@gutov.dev>
Commit: Dmitry Gutov <dmitry@gutov.dev>

    company-complete: Return this-command in case of success
    
    Resolves #1410.
---
 company.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index 5114e9d86d..c394e97d8c 100644
--- a/company.el
+++ b/company.el
@@ -2766,7 +2766,8 @@ inserted."
         (call-interactively 'company-complete-selection)
       (call-interactively 'company-complete-common)
       (when company-candidates
-        (setq this-command 'company-complete-common)))))
+        (setq this-command 'company-complete-common)))
+    this-command))
 
 (define-obsolete-function-alias
   'company-complete-number



reply via email to

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