fix: empty textbox double click causes fatal error
This commit is contained in:
parent
98abbfd838
commit
2ee2ca7a38
@ -337,6 +337,9 @@ inline std::wstring get_alphabet(wchar_t c) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void TextBox::tokenSelectAt(int index) {
|
void TextBox::tokenSelectAt(int index) {
|
||||||
|
if (input.empty()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
int left = index;
|
int left = index;
|
||||||
int right = index;
|
int right = index;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user