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

    ivy.el (ivy-backward-delete-char): Forward to counsel-up-directory
    
    Re #1424
---
 ivy.el | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 2d88204..52ee616 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1693,7 +1693,8 @@ there is no more text to delete at the beginning of the
 minibuffer."
   (interactive)
   (if (and ivy--directory (= (minibuffer-prompt-end) (point)))
-      (progn
+      (if (fboundp 'counsel-up-directory)
+          (counsel-up-directory)
         (ivy--cd (ivy--parent-dir (expand-file-name ivy--directory)))
         (ivy--exhibit))
     (setq prefix-arg current-prefix-arg)

Reply via email to