From: Dmitry Gutov Date: Fri, 25 Mar 2016 23:49:40 +0000 (+0200) Subject: Don't call company-abort right after startup X-Git-Url: https://code.delx.au/gnu-emacs-elpa/commitdiff_plain/90ec4ceef924e0b9dd3fabe62e1441ceab770e61 Don't call company-abort right after startup Fixes #488 --- diff --git a/company.el b/company.el index 5212f927e..3fb6d7633 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',