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

    Forward to minibuffer-complete for filenames only if "^/"
    
    * ivy.el (ivy-partial-or-done): Update.
    
    Fixes #102
---
 ivy.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index c38fd21..4d0647b 100644
--- a/ivy.el
+++ b/ivy.el
@@ -293,7 +293,8 @@ When ARG is t, exit with current text, ignoring the 
candidates."
 When called twice in a row, exit the minibuffer with the current
 candidate."
   (interactive)
-  (if (eq (ivy-state-collection ivy-last) 'read-file-name-internal)
+  (if (and (eq (ivy-state-collection ivy-last) 'read-file-name-internal)
+           (string-match "^/" ivy-text))
       (let ((default-directory ivy--directory))
         (minibuffer-complete)
         (setq ivy-text (ivy--input))

Reply via email to