branch: externals/company
commit 26221c9d516dec2e5cfc97d8a3834b97de524403
Author: Dmitry Gutov <[email protected]>
Commit: Dmitry Gutov <[email protected]>

    Whitelist some commands for non-blinky metadata echo
---
 company.el | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/company.el b/company.el
index 71d590a919..43311bcab0 100644
--- a/company.el
+++ b/company.el
@@ -4829,7 +4829,18 @@ Delay is determined by `company-tooltip-idle-delay'."
   "`company-mode' frontend showing the documentation in the echo area."
   (pcase command
     (`pre-command
-     (when (> company-echo-delay 0)
+     (when (and (> company-echo-delay 0)
+                (or (not (minibufferp))
+                    (memq this-command
+                          '(company-select-next
+                            company-select-previous
+                            company-select-next-or-abort
+                            company-select-previous-or-abort
+                            company-next-page
+                            company-previous-page
+                            company-search-repeat-forward
+                            company-search-repeat-backward
+                            company-complete-common-or-cycle))))
        (company-echo-show)))
     (`post-command (company-echo-show-soon 'company-fetch-metadata))
     (`unhide (company-echo-show))

Reply via email to