fix: empty textbox double click causes fatal error

This commit is contained in:
MihailRis 2024-06-04 23:20:22 +03:00
parent 98abbfd838
commit 2ee2ca7a38

View File

@ -337,6 +337,9 @@ inline std::wstring get_alphabet(wchar_t c) {
}
void TextBox::tokenSelectAt(int index) {
if (input.empty()) {
return;
}
int left = index;
int right = index;