branch: master
commit fe275d692b12987ada488d16bf0e19c0ec582c11
Author: Dmitry Gutov <dgu...@yandex.ru>
Commit: Dmitry Gutov <dgu...@yandex.ru>

    Tiny hack for better latency
    
    At least on paper, it's hard to tell visually
---
 company.el | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/company.el b/company.el
index dc75183..42e5037 100644
--- a/company.el
+++ b/company.el
@@ -1228,10 +1228,11 @@ can retrieve meta-data for them."
         (funcall
          (cdr c)
          (lambda (candidates)
+           (when (eq res 'none)
+             (push 'company-dummy-event unread-command-events))
            (setq res candidates)))
         (while (and (eq res 'none)
-                    (not (input-pending-p t)))
-          (sit-for company-async-wait t))
+                    (sit-for 0.5)))
         (and (consp res) res)))))
 
 (defun company--preprocess-candidates (candidates)

Reply via email to