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
+1 -1
View File
@@ -80,7 +80,7 @@ public:
return std::string({first}); return std::string({first});
case '-': case '-':
skip(1); skip(1);
if (peekNoJump() == '-') { if (hasNext() && peekNoJump() == '-') {
skip(1); skip(1);
return "--"; return "--";
} }
+1
View File
@@ -293,6 +293,7 @@ bool TextBox::eraseSelected() {
} }
erase(selectionStart, selectionEnd-selectionStart); erase(selectionStart, selectionEnd-selectionStart);
resetSelection(); resetSelection();
onInput();
return true; return true;
} }