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

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

[elpa] master 99d214d 142/167: Ivy-resume should restore the buffer for


From: Oleh Krehel
Subject: [elpa] master 99d214d 142/167: Ivy-resume should restore the buffer for swiper
Date: Tue, 08 Dec 2015 10:50:35 +0000

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

    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)



reply via email to

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