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

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

[elpa] master cf3ac8f 04/12: ivy.el (ivy-done): Update wrt globs


From: Oleh Krehel
Subject: [elpa] master cf3ac8f 04/12: ivy.el (ivy-done): Update wrt globs
Date: Thu, 23 Apr 2015 18:01:56 +0000

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

    ivy.el (ivy-done): Update wrt globs
    
    Re #55
---
 ivy.el |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/ivy.el b/ivy.el
index 89c6e51..9019296 100644
--- a/ivy.el
+++ b/ivy.el
@@ -171,12 +171,12 @@ When non-nil, it should contain one %d.")
   (delete-minibuffer-contents)
   (when (cond (ivy--directory
                (insert
-                (cond ((string= ivy-text "")
+                (cond ((string-match "\\*" ivy--current)
+                       ivy--current)
+                      ((string= ivy-text "")
                        (if (equal ivy--current "./")
                            ivy--directory
-                         (if (string-match "\\*" ivy--current)
-                             ivy--current
-                           (expand-file-name ivy--current ivy--directory))))
+                         (expand-file-name ivy--current ivy--directory)))
                       ((zerop ivy--length)
                        (if (string-match "\\*" ivy-text)
                            ivy-text
@@ -678,6 +678,8 @@ When GREEDY is non-nil, join words in a greedy way."
       ;; get out of the prompt area
       (constrain-to-field nil (point-max)))))
 
+(defvar inhibit-message)
+
 (defun ivy--exhibit ()
   "Insert Ivy completions display.
 Should be run via minibuffer `post-command-hook'."



reply via email to

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