mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix syntax highlighting not refreshing on selected text removal
This commit is contained in:
parent
20c80f982f
commit
c1b7389204
2 changed files with 2 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ public:
|
|||
return std::string({first});
|
||||
case '-':
|
||||
skip(1);
|
||||
if (peekNoJump() == '-') {
|
||||
if (hasNext() && peekNoJump() == '-') {
|
||||
skip(1);
|
||||
return "--";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -293,6 +293,7 @@ bool TextBox::eraseSelected() {
|
|||
}
|
||||
erase(selectionStart, selectionEnd-selectionStart);
|
||||
resetSelection();
|
||||
onInput();
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue