fix syntax highlighting not refreshing on selected text removal

This commit is contained in:
MihailRis 2025-02-13 23:45:05 +03:00
parent b832b9850f
commit 33795f06f7
2 changed files with 2 additions and 1 deletions

View File

@ -80,7 +80,7 @@ public:
return std::string({first});
case '-':
skip(1);
if (peekNoJump() == '-') {
if (hasNext() && peekNoJump() == '-') {
skip(1);
return "--";
}

View File

@ -293,6 +293,7 @@ bool TextBox::eraseSelected() {
}
erase(selectionStart, selectionEnd-selectionStart);
resetSelection();
onInput();
return true;
}