branch: externals/ivy-hydra
commit c8120fb614425bf76bee687183f70b4b4c2ffc9d
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    counsel.el (counsel-cd): Add counsel-delete-process
    
    Fixes #2297
---
 counsel.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/counsel.el b/counsel.el
index 592daaf..d6a62b7 100644
--- a/counsel.el
+++ b/counsel.el
@@ -2876,6 +2876,7 @@ CALLER is passed to `ivy-read'."
   "Change the directory for the currently running Ivy grep-like command.
 Works for `counsel-git-grep', `counsel-ag', etc."
   (interactive)
+  (counsel-delete-process)
   (let ((input ivy-text)
         (new-dir (counsel-read-directory-name "cd: ")))
     (ivy-quit-and-run

Reply via email to