gpui: Fix division by zero when chars/sec = 0 on Wayland (#44151) (cherry-pick to preview) (#44154)
zed-zippy[bot]
and
Rawand Ahmed Shaswar
created
Cherry-pick of #44151 to preview
----
Closes #44148
the existing rate == 0 check inside the timer callback already handles
disabling repeat - it just drops the timer immediately. So the fix
prevents the crash while preserving correct behavior.
Release Notes:
- Linux (Wayland): Fixed a crash that could occur when
`characters_per_second` was zero
Co-authored-by: Rawand Ahmed Shaswar <rawandahmad698@gmail.com>