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

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

[elpa] master f965786 20/31: company-complete: Ensure last command was r


From: Dmitry Gutov
Subject: [elpa] master f965786 20/31: company-complete: Ensure last command was really the same
Date: Sun, 14 Apr 2019 22:06:18 -0400 (EDT)

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

    company-complete: Ensure last command was really the same
    
    Follow-up to the last commit, to handle a slightly different case
---
 company.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index 48d3d7d..05a599c 100644
--- a/company.el
+++ b/company.el
@@ -2188,7 +2188,8 @@ inserted."
   (interactive)
   (when (company-manual-begin)
     (if (or company-selection-changed
-            (eq last-command 'company-complete-common))
+            (and (eq real-last-command 'company-complete)
+                 (eq last-command 'company-complete-common)))
         (call-interactively 'company-complete-selection)
       (call-interactively 'company-complete-common)
       (when company-candidates



reply via email to

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