Skip to content

Commit

Permalink
counsel.el (counsel-find-file): Fix window focus issue
Browse files Browse the repository at this point in the history
"C-M-n" should work fine now.
  • Loading branch information
abo-abo committed Aug 5, 2015
1 parent be989fe commit 098bec0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion counsel.el
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,8 @@ INITIAL-INPUT can be given as the initial minibuffer input."
:matcher #'counsel--find-file-matcher
:action
(lambda (x)
(find-file (expand-file-name x ivy--directory)))
(with-ivy-window
(find-file (expand-file-name x ivy--directory))))
:preselect (when counsel-find-file-at-point
(require 'ffap)
(ffap-guesser))
Expand Down

0 comments on commit 098bec0

Please sign in to comment.