mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-28 01:59:59 +01:00
[escher/text_input] Clean TextInput::ContentView::resetSelection
This commit is contained in:
@@ -58,10 +58,10 @@ void TextInput::ContentView::addSelection(const char * left, const char * right)
|
||||
}
|
||||
|
||||
bool TextInput::ContentView::resetSelection() {
|
||||
const char * previousStart = m_selectionStart;
|
||||
if (previousStart == nullptr) {
|
||||
if (selectionIsEmpty()) {
|
||||
return false;
|
||||
}
|
||||
const char * previousStart = m_selectionStart;
|
||||
const char * previousEnd = m_selectionEnd;
|
||||
m_selectionStart = nullptr;
|
||||
m_selectionEnd = nullptr;
|
||||
|
||||
Reference in New Issue
Block a user