Skip to content

gpui: Fix division by zero when chars/sec = 0 on Wayland (#44151) (cherry-pick to preview)#44154

Merged
zed-zippy[bot] merged 1 commit intov0.216.xfrom
cherry-pick-v0.216.x-2dad46c5
Dec 4, 2025
Merged

gpui: Fix division by zero when chars/sec = 0 on Wayland (#44151) (cherry-pick to preview)#44154
zed-zippy[bot] merged 1 commit intov0.216.xfrom
cherry-pick-v0.216.x-2dad46c5

Conversation

@zed-zippy
Copy link
Contributor

@zed-zippy zed-zippy bot commented Dec 4, 2025

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

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
@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Dec 4, 2025
@zed-zippy zed-zippy bot merged commit 0f433da into v0.216.x Dec 4, 2025
23 checks passed
@zed-zippy zed-zippy bot deleted the cherry-pick-v0.216.x-2dad46c5 branch December 4, 2025 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant