[Top][All Lists]

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

[elpa] master 966525c 118/184: counsel.el (counsel-cd): Fix for counsel-

From: Oleh Krehel
Subject: [elpa] master 966525c 118/184: counsel.el (counsel-cd): Fix for counsel-ag
Date: Wed, 16 Oct 2019 13:15:03 -0400 (EDT)

branch: master
commit 966525c94d0362a41a37c6427ef90100e871a257
Author: Hong Xu <address@hidden>
Commit: Oleh Krehel <address@hidden>

    counsel.el (counsel-cd): Fix for counsel-ag
    Fix (completely broken) `counsel-cd' for `counsel-ag'.
    Re #2261
 counsel.el | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/counsel.el b/counsel.el
index 933dd33..782a801 100644
--- a/counsel.el
+++ b/counsel.el
@@ -2844,8 +2844,7 @@ CALLER is passed to `ivy-read'."
   (let ((input ivy-text)
         (new-dir (read-directory-name "cd: ")))
-      (let ((default-directory new-dir))
-        (funcall (ivy-state-caller ivy-last) input)))))
+      (funcall (ivy-state-caller ivy-last) input new-dir))))
 (cl-pushnew 'counsel-ag ivy-highlight-grep-commands)

reply via email to

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