emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 1c0703e 36/57: Forward to minibuffer-complete for filename


From: Oleh Krehel
Subject: [elpa] master 1c0703e 36/57: Forward to minibuffer-complete for filenames only if "^/"
Date: Tue, 19 May 2015 14:21:35 +0000

branch: master
commit 1c0703e56cd40f96458ac9df57a1e2bb28a0520c
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    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

[Prev in Thread] Current Thread [Next in Thread]