branch: master
commit 99d214d8052c221ad914d270bdcc172ed7fffc76
Author: Oleh Krehel <[email protected]>
Commit: Oleh Krehel <[email protected]>
Ivy-resume should restore the buffer for swiper
* ivy.el (ivy-resume): Update.
Fixes #302
---
ivy.el | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/ivy.el b/ivy.el
index 321c420..af786c0 100644
--- a/ivy.el
+++ b/ivy.el
@@ -539,6 +539,8 @@ If the text hasn't changed as a result, forward to
`ivy-alt-done'."
(defun ivy-resume ()
"Resume the last completion session."
(interactive)
+ (when (eq (ivy-state-caller ivy-last) 'swiper)
+ (switch-to-buffer (ivy-state-buffer ivy-last)))
(with-current-buffer (ivy-state-buffer ivy-last)
(ivy-read
(ivy-state-prompt ivy-last)