mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 18:20:14 +01:00
[escher/text_field] Fix selection deletion
The draft text length should be modified accordingly
This commit is contained in:
@@ -233,6 +233,8 @@ size_t TextField::ContentView::deleteSelection() {
|
||||
* are invalid */
|
||||
m_selectionStart = nullptr;
|
||||
m_selectionEnd = nullptr;
|
||||
assert(removedLength <= m_currentDraftTextLength);
|
||||
m_currentDraftTextLength -= removedLength;
|
||||
return removedLength;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user