Fix panic in commit editor selections syncing (#26186)

Closes #26183 

Release Notes:

- Git Beta: Fixed a panic when selecting text in one of the commit
message editors
aec4d5cb26Cole Miller committed on 3/6/2025, 3:21:40 AM· committed by GitHubparent4c0750b
1 file changedLine totals unavailable