* ivy.el (ivy-read): recursive-ivy-last is only set if there's an active
minibuffer window. If this check isn't made, it causes the previous
`ivy-last' to be reset after the current one, so `ivy-resume' would
resume not the last command.
("o" ,action "default")
,@extra-actions)
(delete-dups (append action extra-actions))))))
- (let ((recursive-ivy-last ivy-last))
+ (let ((recursive-ivy-last (and (active-minibuffer-window) ivy-last)))
(setq ivy-last
(make-ivy-state
:prompt prompt