From a541b996bd03a21a81edc02f333016fd906b91b6 Mon Sep 17 00:00:00 2001 From: Jonas Bernoulli Date: Wed, 6 Nov 2024 18:03:25 +0100 Subject: [PATCH] transient--goto-button: Fix returning to button at very bob --- lisp/transient.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/transient.el b/lisp/transient.el index ce18bf1..bf62cb8 100644 --- a/lisp/transient.el +++ b/lisp/transient.el @@ -4464,7 +4464,9 @@ See `forward-button' for information about N." (not (found)))) (unless (found) (goto-char (point-min)) - (ignore-errors (forward-button 1))))))) + (ignore-errors (forward-button 1)) + (unless (found) + (goto-char (point-min)))))))) (defun transient--heading-at-point () (and (eq (get-text-property (point) 'face) 'transient-heading)