branch: master
commit 9f5f6e02e4b33f36652588903a8bab8ae3e28667
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy-overlay.el (ivy-overlay-cleanup): Fixup
Reset cursor only if it's nil.
---
ivy-overlay.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/ivy-overlay.el b/ivy-overlay.el
index 1e97899..732ee39 100644
--- a/ivy-overlay.el
+++ b/ivy-overlay.el
@@ -50,7 +50,8 @@
(when (overlayp ivy-overlay-at)
(delete-overlay ivy-overlay-at)
(setq ivy-overlay-at nil))
- (setq cursor-type ivy--old-cursor-type)
+ (unless cursor-type
+ (setq cursor-type ivy--old-cursor-type))
(when (fboundp 'company-abort)
(company-abort)))