Fix infinite loop in select all (#3154)

[[PR Description]]

Release Notes:

- Fixed an infinite loop in select all matches
([#2170](https://github.com/zed-industries/community/issues/2170)).
2b95db087bConrad Irwin committed on 10/24/2023, 8:58:48 AM· committed by GitHubparents67e59020e035c1
4 files changedLine totals unavailable