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

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

[elpa] master 098bec0 61/63: counsel.el (counsel-find-file): Fix window


From: Oleh Krehel
Subject: [elpa] master 098bec0 61/63: counsel.el (counsel-find-file): Fix window focus issue
Date: Fri, 21 Aug 2015 12:08:49 +0000

branch: master
commit 098bec051b48a2ec091860599a49939cc9885025
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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))



reply via email to

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