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

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

[elpa] master db283d3 005/272: Fix recursive minibuffer exit with "C-g"


From: Oleh Krehel
Subject: [elpa] master db283d3 005/272: Fix recursive minibuffer exit with "C-g"
Date: Mon, 25 Apr 2016 10:13:13 +0000

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

    Fix recursive minibuffer exit with "C-g"
    
    * ivy.el (ivy-read): Make it so e.g. "C-h f C-h v C-g" goes back to the
      describe-function selection.
---
 ivy.el |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 6fd361b..a0bbbd8 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1151,7 +1151,10 @@ customizations apply to the current completion session."
                    res)))
           (remove-hook 'post-command-hook #'ivy--exhibit)
           (when (setq unwind (ivy-state-unwind ivy-last))
-            (funcall unwind)))
+            (funcall unwind))
+          (unless (eq ivy-exit 'done)
+            (when recursive-ivy-last
+              (ivy--reset-state (setq ivy-last recursive-ivy-last)))))
       (ivy-call)
       (when (and recursive-ivy-last
                  ivy-recursive-restore)



reply via email to

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