[escher] Rename deleteSelectedText -> deleteSelection

This commit is contained in:
Léa Saviot
2019-12-18 12:30:07 +01:00
parent 5de65e0d7e
commit efc8a238ea
6 changed files with 15 additions and 15 deletions

View File

@@ -135,11 +135,11 @@ void TextInput::scrollToCursor() {
scrollToContentRect(contentView()->cursorRect(), true);
}
void TextInput::deleteSelectedText() {
void TextInput::deleteSelection() {
assert(!contentView()->selectionIsEmpty());
const char * previousSelectionStart = contentView()->selectionStart();
const char * previousSelectionEnd = contentView()->selectionEnd();
size_t removedLength = contentView()->deleteSelectedText();
size_t removedLength = contentView()->deleteSelection();
if (previousSelectionEnd == contentView()->cursorLocation()) {
setCursorLocation(contentView()->cursorLocation() - removedLength);
}