editor: Fix crash caused by `editor::SelectPrevious` (#24660)

Closes #24345

Release Notes:

- Fixed a crash caused by calling `editor::SelectPrevious` twice in a
row.

Co-authored-by: conrad <conrad@zed.dev>
bbea3a2184smit committed on 2/11/2025, 4:37:44 PM· committed by GitHubparent7950368
2 files changedLine totals unavailable