branch: master
commit a70b734cb3e21553479b5ba96fb531524e648b33
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    ivy.el (ivy-backward-delete-char): Expand `ivy--directory'
    
    This avoids the situation of getting a nil for "~/".
    
    Re #57
---
 ivy.el |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index 9019296..c270294 100644
--- a/ivy.el
+++ b/ivy.el
@@ -343,7 +343,9 @@ On error (read-only), call `ivy-on-del-error-function'."
   (if (and ivy--directory (= (minibuffer-prompt-end) (point)))
       (progn
         (ivy--cd (file-name-directory
-                  (directory-file-name ivy--directory)))
+                  (directory-file-name
+                   (expand-file-name
+                    ivy--directory))))
         (ivy--exhibit))
     (condition-case nil
         (backward-delete-char 1)

Reply via email to