branch: master commit db283d3c25bf8e903b215bc1d318c76c90e04689 Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
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)