Merge branch 'main' into update-items

This commit is contained in:
MihailRis 2025-02-14 18:49:43 +03:00
commit fd8c26d585
2 changed files with 2 additions and 1 deletions

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 "--";
} }

View File

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