* swiper.el (swiper-query-replace): Make sure to use `swiper--window'.
* ivy.el (ivy--minibuffer-setup): Remove the `use-local-map' statement,
the map is already set in `read-from-minibuffer'.
(set (make-local-variable 'minibuffer-default-add-function)
(lambda ()
(list ivy--default)))
(set (make-local-variable 'minibuffer-default-add-function)
(lambda ()
(list ivy--default)))
- (use-local-map (make-composed-keymap ivy-minibuffer-map
- (current-local-map)))
(setq-local max-mini-window-height ivy-height)
(add-hook 'post-command-hook #'ivy--exhibit nil t)
;; show completions with empty input
(setq-local max-mini-window-height ivy-height)
(add-hook 'post-command-hook #'ivy--exhibit nil t)
;; show completions with empty input
(delete-minibuffer-contents)
(setq ivy--action
(lambda ()
(delete-minibuffer-contents)
(setq ivy--action
(lambda ()
- (perform-replace from to
- t t t)))
+ (with-selected-window swiper--window
+ (perform-replace from to
+ t t t))))
(swiper--cleanup)
(exit-minibuffer))))
(swiper--cleanup)
(exit-minibuffer))))