branch: master
commit 69491ad9b1b9e2647d9305e61c76e630993d886a
Author: Oleh Krehel <ohwoeo...@gmail.com>
Commit: Oleh Krehel <ohwoeo...@gmail.com>

    Fixup "C-u C-j" for `ivy-switch-buffer'
    
    ivy.el (ivy-immediate-done): Since action-style call is used now,
    `ivy--current' must be set to `ivy-test', since it's `ivy--current' that
    will count as completion result.
---
 ivy.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ivy.el b/ivy.el
index f7e10e6..c36d622 100644
--- a/ivy.el
+++ b/ivy.el
@@ -342,7 +342,7 @@ If the text hasn't changed as a result, forward to 
`ivy-alt-done'."
   "Exit the minibuffer with the current input."
   (interactive)
   (delete-minibuffer-contents)
-  (insert ivy-text)
+  (insert (setq ivy--current ivy-text))
   (setq ivy-exit 'done)
   (exit-minibuffer))
 

Reply via email to