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

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

[elpa] master 12c25a0 04/22: ivy.el (ivy-read): Don't add the `default-d


From: Oleh Krehel
Subject: [elpa] master 12c25a0 04/22: ivy.el (ivy-read): Don't add the `default-directory'
Date: Wed, 22 Apr 2015 19:51:46 +0000

branch: master
commit 12c25a0ee32dd9d461a3d0dd438e33031159a364
Author: Oleh Krehel <address@hidden>
Commit: Oleh Krehel <address@hidden>

    ivy.el (ivy-read): Don't add the `default-directory'
---
 ivy.el |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index 73ac9f0..74991fe 100644
--- a/ivy.el
+++ b/ivy.el
@@ -410,7 +410,8 @@ When SORT is t, refer to `ivy-sort-functions-alist' for 
sorting."
            (setq coll
                  (ivy--sorted-files default-directory))
            (when initial-input
-             (unless ivy-require-match
+             (unless (or ivy-require-match
+                         (equal initial-input default-directory))
                (setq coll (cons initial-input coll)))
              (setq initial-input nil)))
           ((or (functionp collection)



reply via email to

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