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

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

[elpa] master 87509b1 19/31: company-complete: Don't change last-command


From: Dmitry Gutov
Subject: [elpa] master 87509b1 19/31: company-complete: Don't change last-command if completion exited
Date: Sun, 14 Apr 2019 22:06:18 -0400 (EDT)

branch: master
commit 87509b17e0b051f5f20b2b8b2967cd7b20d5d1d0
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    company-complete: Don't change last-command if completion exited
    
    Fixes #879
---
 company.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index 71f3756..48d3d7d 100644
--- a/company.el
+++ b/company.el
@@ -2191,7 +2191,8 @@ inserted."
             (eq last-command 'company-complete-common))
         (call-interactively 'company-complete-selection)
       (call-interactively 'company-complete-common)
-      (setq this-command 'company-complete-common))))
+      (when company-candidates
+        (setq this-command 'company-complete-common)))))
 
 (defun company-complete-number (n)
   "Insert the Nth candidate visible in the tooltip.



reply via email to

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