branch: master
commit c5fce646fd1bb6228b5e8708b1c7cb38e0d4e8f8
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>

    Make "TAB" switch directories properly
    
    * ivy.el (ivy-partial-or-done): Forward to `ivy-alt-done'.
    
    Fixes #75
---
 ivy.el |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/ivy.el b/ivy.el
index 15506e2..d2dc037 100644
--- a/ivy.el
+++ b/ivy.el
@@ -279,11 +279,7 @@ When called twice in a row, exit the minibuffer with the 
current
 candidate."
   (interactive)
   (if (eq this-command last-command)
-      (when (> (length ivy--current) 0)
-        (delete-minibuffer-contents)
-        (insert ivy--current)
-        (setq ivy-exit 'done)
-        (exit-minibuffer))
+      (ivy-alt-done)
     (let* ((parts (split-string ivy-text " " t))
            (postfix (car (last parts)))
            (completion-ignore-case t)

Reply via email to