mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 18:20:14 +01:00
[escher] Rename deleteSelectedText -> deleteSelection
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user