XGameUI: a text entry limit of 0 is 1024 characters, as documented #331
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/331"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from fxceless/victory-fork. Originally posted by RenzoWit35 on 2026-11-24T23:34:50Z.
Fixes #248.
The GDK documents
maxTextLength = 0as 1024 characters; it was treated as no limit, both forthe edit control (
EM_LIMITTEXT 0is the control's own maximum) and for trimming the result.Zero is now mapped to 1024 at entry, and that limit goes to both.
Test
zero_length_limit_means_1024_characters: the helper, plus a call with 0 that types 1035characters and returns 1024 (+ NUL).
Testing
On Windows 11, MSVC Rust 1.98.1, branch alone on top of
main(2119b0e):cargo clippy --workspace --all-targets --locked -- -D warnings, the same with--all-features, andcargo test --workspace --lockedall pass. The new regression test fails onmainand passes here. All nine fix branches for #242-#250 also pass together when merged.🤖 Generated with Claude Code
Imported from fxceless/victory-fork. Originally posted by kaayzouee on 2026-11-25T01:15:08Z.
Duplicate of #291?
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.