Scroll to undo/redo of Cursor Tab completion and Apply application

TLDR

This would bring Cursor code edits to parity with VS Code’s behavior when undoing/redoing a change.

What I See

  1. Accept a Cursor Tab completion (hit tab) OR accept/deny a Cursor Apply diff.
  2. Scroll the editor.
  3. Undo the change (hit Cmd + Z).
  4. Notice that the view of the editor doesn’t change; the scrollbar stays where it is.

What I Want

  1. Notice that the view of the editor returns to the undone line; the scrollbar returns to where it was just before the change was accepted.

Motivation

Often when I’m writing code in a large file, I scroll around to look at other parts of the code before returning to the line I’m editing. But how do I return to that line quickly? I can make a change: By typing a single character, the editor will scroll back to where I was. What if I want to return without making a change? Well, I can make two changes that net to zero: Cmd + Z followed by Cmd + Shift + Z—undo then redo.

This works if I’ve typed something before (i.e., almost always), but it does not work if my last action was a Cursor Tab completion. This feature would scroll the editor back to where I was upon undoing/redoing a Cursor Tab completion.