branch: master commit 098bec051b48a2ec091860599a49939cc9885025 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
counsel.el (counsel-find-file): Fix window focus issue "C-M-n" should work fine now. --- counsel.el | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/counsel.el b/counsel.el index 6aefbb0..63c9552 100644 --- a/counsel.el +++ b/counsel.el @@ -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))