linux: Fix crash when switching repository via git panel (#31556)

Closes #30409

Handles edge case where `f32` turns into `Nan` and causes panic down the
code.

Release Notes:

- Fixed issue where Zed crashes on switching repository via git panel on
Linux.
6545c5ebe0Smit Barmase committed on 5/27/2025, 11:56:00 PM· committed by GitHubparent506beaf
1 file changedLine totals unavailable