]> code.delx.au - gnu-emacs-elpa/commitdiff
Forward to minibuffer-complete for filenames only if "^/"
authorOleh Krehel <ohwoeowho@gmail.com>
Tue, 12 May 2015 11:34:03 +0000 (13:34 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Tue, 12 May 2015 11:34:03 +0000 (13:34 +0200)
* ivy.el (ivy-partial-or-done): Update.

Fixes #102

ivy.el

diff --git a/ivy.el b/ivy.el
index c38fd21968d476003191dba0b425b9db3fee312c..4d0647ba57bf9b68fe875910c584c9737e40627b 100644 (file)
--- 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))