Skip to content

Conversation

@ToxicMushroom
Copy link

I changed the underflowing - 1 to a saturating_sub. Meaning that when the left hand side is 0, the result is now 0 and not a panic.
I also added a test case that was triggering the panic for me when I was dragging my mouse to select some text.

Should resolve #835

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Panic in parse_csi_sgr_mouse

1 participant