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

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

[elpa] master 1a193b0 16/90: ivy.el (ivy--done): Set ivy--current


From: Oleh Krehel
Subject: [elpa] master 1a193b0 16/90: ivy.el (ivy--done): Set ivy--current
Date: Tue, 30 Jun 2015 07:28:07 +0000

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

    ivy.el (ivy--done): Set ivy--current
    
    Fixes a bug of using :action for completing file names.
---
 ivy.el |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/ivy.el b/ivy.el
index 40e8330..697f854 100644
--- a/ivy.el
+++ b/ivy.el
@@ -222,9 +222,9 @@ When non-nil, it should contain one %d.")
   "Insert TEXT and exit minibuffer."
   (if (and ivy--directory
            (not (eq (ivy-state-history ivy-last) 'grep-files-history)))
-      (insert (expand-file-name
-                 text ivy--directory))
-    (insert text))
+      (insert (setq ivy--current (expand-file-name
+                                  text ivy--directory)))
+    (insert (setq ivy--current text)))
   (setq ivy-exit 'done)
   (exit-minibuffer))
 



reply via email to

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