EditBox::SetMaxLetters
function · ui · primitive
- Address
0x799110· 237 bytes, up to0x7991fc- Signature
int __fastcall (lua_State *L)- Meaning
- Implements the EditBox method SetMaxLetters, its pair in the table 0x87bb68
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/editbox#a-negative-letter-limit-hangs
Finding: A negative letter limit hangs in ui: EditBox
A negative letter limit is never met: the trim loop deletes backward from the end until the text
is empty, and an empty text still has more letters than the limit, so the next insertion of any
text never returns. That includes SetText("") on a box with text; on an empty box SetText
returns early, since the texts are equal.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 8
- __ftol crt
- lua_gettop lua
- lua_settop lua
- lua_type lua
- lua_tonumber lua
- lua_touserdata lua
- lua_rawgeti lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.