mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-12 14:31:50 +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});
|
return std::string({first});
|
||||||
case '-':
|
case '-':
|
||||||
skip(1);
|
skip(1);
|
||||||
if (peekNoJump() == '-') {
|
if (hasNext() && peekNoJump() == '-') {
|
||||||
skip(1);
|
skip(1);
|
||||||
return "--";
|
return "--";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -293,6 +293,7 @@ bool TextBox::eraseSelected() {
|
||||||
}
|
}
|
||||||
erase(selectionStart, selectionEnd-selectionStart);
|
erase(selectionStart, selectionEnd-selectionStart);
|
||||||
resetSelection();
|
resetSelection();
|
||||||
|
onInput();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue