]> code.delx.au - gnu-emacs-elpa/commitdiff
Don't call company-abort right after startup
authorDmitry Gutov <dgutov@yandex.ru>
Fri, 25 Mar 2016 23:49:40 +0000 (01:49 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Fri, 25 Mar 2016 23:50:01 +0000 (01:50 +0200)
Fixes #488

company.el

index 5212f927e30286df3447ca48941ea450e379ec8e..3fb6d763358486448b60d8a2e75a1f36ab29b70a 100644 (file)
@@ -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',