]> code.delx.au - gnu-emacs-elpa/commitdiff
Fixup "C-u C-j" for `ivy-switch-buffer'
authorOleh Krehel <ohwoeowho@gmail.com>
Wed, 20 May 2015 11:05:03 +0000 (13:05 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Sat, 23 May 2015 11:18:58 +0000 (13:18 +0200)
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

diff --git a/ivy.el b/ivy.el
index f7e10e648a73c73d2ecf60f3a9c7988d60d22a91..c36d62297c1e6dfed47fc772e47832620a1a6e74 100644 (file)
--- 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))