mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-07 19:06:39 +00:00
Don't delete extra char using Ctrl+backspace to delete words in ui::Entry
This commit is contained in:
parent
7cde901047
commit
fa187b35a8
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user