New UI continued

This commit is contained in:
Bertrand Songis
2019-10-05 19:01:56 +02:00
parent a9bce97bdd
commit f23021226d
2 changed files with 15 additions and 15 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ void TextEdit::onEvent(event_t event)
invalidate();
}
}
else {
else if (cursorPos < length) {
memmove(value + cursorPos + 1, value + cursorPos, length - cursorPos - 1);
value[cursorPos++] = c;
invalidate();