Don't delete extra char using Ctrl+backspace to delete words in ui::Entry

This commit is contained in:
David Capello 2020-05-15 18:15:59 -03:00
parent 7cde901047
commit fa187b35a8

View File

@ -740,7 +740,7 @@ void Entry::executeCmd(EntryCmd cmd, int unicodeChar, bool shift_pressed)
backwardWord();
if (m_caret < m_select) {
text.erase(m_boxes[m_caret].from,
m_boxes[m_select].to - m_boxes[m_caret].from);
m_boxes[m_select-1].to - m_boxes[m_caret].from);
}
m_select = -1;
break;