branch: master commit c0aa563b75cbd7b47cb6859cc28dc093e90cb3dd Author: Oleh Krehel <ohwoeo...@gmail.com> Commit: Oleh Krehel <ohwoeo...@gmail.com>
ivy.el (ivy-occur): Set up next-error-function Re #2257 --- ivy.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ivy.el b/ivy.el index ccd53ff..eb6cad4 100644 --- a/ivy.el +++ b/ivy.el @@ -4744,7 +4744,8 @@ There is no limit on the number of *ivy-occur* buffers." (ivy-exit-with-action (lambda (_) (pop-to-buffer buffer) - (setq next-error-last-buffer buffer)))))) + (setq next-error-last-buffer buffer) + (setq-local next-error-function #'ivy-occur-next-error)))))) (defun ivy-occur-revert-buffer () "Refresh the buffer making it up-to date with the collection.