Skip to content

Commit

Permalink
Avoid setting ivy window as minibuffer
Browse files Browse the repository at this point in the history
* ivy.el (ivy-completion-in-region): Don't set ivy window to minibuffer window

Fixes abo-abo#1051
  • Loading branch information
justbur committed Jun 6, 2017
1 parent 2d29191 commit 6458c35
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ivy.el
Expand Up @@ -1915,7 +1915,8 @@ The previous string is between `ivy-completion-beg' and `ivy-completion-end'."
(if (null (cdr comps))
(if (string= str (car comps))
(message "Sole match")
(setf (ivy-state-window ivy-last) (selected-window))
(unless (minibuffer-window-active-p (selected-window))
(setf (ivy-state-window ivy-last) (selected-window)))
(ivy-completion-in-region-action
(substring-no-properties
(car comps))))
Expand Down

0 comments on commit 6458c35

Please sign in to comment.