emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 8109655 204/348: ivy-overlay.el (ivy-display-function-over


From: Oleh Krehel
Subject: [elpa] master 8109655 204/348: ivy-overlay.el (ivy-display-function-overlay): Fix with-ivy-window
Date: Sat, 8 Apr 2017 11:03:57 -0400 (EDT)

branch: master
commit 8109655745e979020a2d8a6e4ffe1e1b575537fb
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]