[escher] Fix backspace on utf8 combining code point

This commit is contained in:
Léa Saviot
2019-06-21 14:08:32 +02:00
committed by EmilieNumworks
parent 67eea0802f
commit 5f549b514e
9 changed files with 26 additions and 26 deletions

View File

@@ -84,7 +84,7 @@ bool EditorController::textAreaDidReceiveEvent(TextArea * textArea, Ion::Events:
numberOfSpaces = numberOfSpaces / UTF8Decoder::CharSizeOfCodePoint(' ');
if (cursorIsPrecededOnTheLineBySpacesOnly && numberOfSpaces >= k_indentationSpacesNumber) {
for (int i = 0; i < k_indentationSpacesNumber; i++) {
textArea->removeCodePoint();
textArea->removePreviousGlyph();
}
return true;
}