Fixes #1103. Reproduce the bug by selecting all text, then performing an undo/redo operation that deletes some part of it. That will result in a value of state->select_end beyond STB_TEXTEDIT_STRINGLEN(), leading to crashes in code that use the library.
Fixes #1103. Reproduce the bug by selecting all text, then performing an undo/redo operation that deletes some part of it. That will result in a value of state->select_end beyond STB_TEXTEDIT_STRINGLEN(), leading to crashes in code that use the library.