branch: master
commit 1bdc50b00afe37d0fbfe24d7289e70df20252f17
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    ivy-overlay.el (ivy-overlay-cleanup): Don't trigger company
---
 ivy-overlay.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/ivy-overlay.el b/ivy-overlay.el
index 2020d08..1156b79 100644
--- a/ivy-overlay.el
+++ b/ivy-overlay.el
@@ -43,12 +43,16 @@
                (split-string str "\n")
                "\n")))
 
+(declare-function company-abort "ext:company")
+
 (defun ivy-overlay-cleanup ()
   "Clean up after `ivy-display-function-overlay'."
   (when (overlayp ivy-overlay-at)
     (delete-overlay ivy-overlay-at)
     (setq ivy-overlay-at nil))
-  (setq cursor-type ivy--old-cursor-type))
+  (setq cursor-type ivy--old-cursor-type)
+  (when (fboundp 'company-abort)
+    (company-abort)))
 
 (defun ivy-overlay-show-after (str)
   "Display STR in an overlay at point.

Reply via email to