Skip to content

fix textfieldwidget cursor oob - #171

Merged
gustovafing merged 2 commits into
1.20.1from
jj/fix-textfieldwidget
Nov 26, 2026
Merged

gustovafing merged 2 commits into
1.20.1from
jj/fix-textfieldwidget

Conversation

@jurrejelle

Copy link
Copy Markdown
Contributor

What

Fixes a bug where if text is sycned while focussed the cursor can be outside the actual text and crash

Implementation Details

This is breaking API since callers have to use the setText/setLine functions now, but it's worth it since otherwise the cursor can be oob

AI Usage

opus 5.5 helped find the bug and write this code, was audited by me

Outcome

no more crashes :D

@jurrejelle jurrejelle changed the title Jj/fix textfieldwidget fix textfieldwidget cursor oob Nov 25, 2026
@gustovafing
gustovafing merged commit acae167 into 1.20.1 Nov 26, 2026
1 check passed
@gustovafing
gustovafing deleted the jj/fix-textfieldwidget branch November 26, 2026 17:56
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.

2 participants