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

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

[elpa] master 90ec4ce 153/173: Don't call company-abort right after star


From: Dmitry Gutov
Subject: [elpa] master 90ec4ce 153/173: Don't call company-abort right after startup
Date: Thu, 23 Jun 2016 00:28:47 +0000 (UTC)

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

    Don't call company-abort right after startup
    
    Fixes #488
---
 company.el |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index 5212f92..3fb6d76 100644
--- a/company.el
+++ b/company.el
@@ -1595,7 +1595,8 @@ from the rest of the backends in the group, if any, will 
be left at the end."
   (company-uninstall-map))
 
 (defun company-post-command ()
-  (when (null this-command)
+  (when (and company-candidates
+             (null this-command))
     ;; Happens when the user presses `C-g' while inside
     ;; `flyspell-post-command-hook', for example.
     ;; Or any other `post-command-hook' function that can call `sit-for',



reply via email to

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