Skip to content

Commit

Permalink
transient--goto-button: Never error if command at point disappears
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsius committed Nov 6, 2024
1 parent 00fabc7 commit 7926f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lisp/transient.el
Original file line number Diff line number Diff line change
Expand Up @@ -4463,7 +4463,7 @@ See `forward-button' for information about N."
(not (eq (button-get (button-at (point)) 'command) command))))
(unless (eq (button-get (button-at (point)) 'command) command)
(goto-char (point-min))
(forward-button 1)))))
(ignore-errors (forward-button 1))))))

(defun transient--heading-at-point ()
(and (eq (get-text-property (point) 'face) 'transient-heading)
Expand Down

0 comments on commit 7926f2b

Please sign in to comment.