Cleanup: remove CommitSelection option when refreshing rebase todos

This option has no effect, it isn't respected by refreshRebaseCommits,
so it looks misleading to include it here.
This commit is contained in:
Stefan Haller 2026-08-29 13:54:25 +02:00 committed by GitHub
parent b7ffa93dc6
commit fd1b229f93
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1177,9 +1177,8 @@ func (self *LocalCommitsController) move(
// read the moved todo from the refreshed model, not grab whatever the
// advanced selection index points at in the stale one.
self.c.RefreshBlockingInput(types.RefreshOptions{
Scope: []types.RefreshableView{types.REBASE_COMMITS},
CommitSelection: types.KeepCommitSelectionIndex,
Then: onComplete,
Scope: []types.RefreshableView{types.REBASE_COMMITS},
Then: onComplete,
})
return nil
}