SIGN IN SIGN UP

Diff View: Scroll to center of hunks when reviewing (#25846)

When reviewing hunks, scroll to put them at the center of the screen
so you can better see the context around that hunk.

The field `center_cursor` was added to the actions `editor::GoToHunk`
and `editor::GoToPrevHunk`, this was set to `false` by default in
keymaps, as it wouldn't help with in-editor navigation.

The field is set to `true` for when you trigger `git::StageAndNext`
and `git::UnstageAndNext`, this is also `true` for the buttons in the
Diff View toolbar.

Release Notes:

- N/A
J
João Marcos committed
2d61a51ded18f0a0f928df2dbd8f5b9c34036c66
Parent: a2876f5
Committed by GitHub <noreply@github.com> on 3/1/2025, 3:20:26 AM