branch: master
commit 8109655745e979020a2d8a6e4ffe1e1b575537fb
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
ivy-overlay.el (ivy-display-function-overlay): Fix with-ivy-window
Avoid using `with-ivy-window' macro.
Fixes #712
---
ivy-overlay.el | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/ivy-overlay.el b/ivy-overlay.el
index 732ee39..521d810 100644
--- a/ivy-overlay.el
+++ b/ivy-overlay.el
@@ -74,9 +74,10 @@ Then attach the overlay the character before point."
Hide the minibuffer contents and cursor."
(add-face-text-property (minibuffer-prompt-end) (point-max)
'(:foreground "white"))
- (let ((cursor-pos (1+ (- (point) (minibuffer-prompt-end)))))
+ (let ((cursor-pos (1+ (- (point) (minibuffer-prompt-end))))
+ (ivy-window (ivy--get-window ivy-last)))
(setq cursor-type nil)
- (with-ivy-window
+ (with-selected-window ivy-window
(when cursor-type
(setq ivy--old-cursor-type cursor-type))
(setq cursor-type nil)