Ticket #9138: caret_pos.patch

File caret_pos.patch, 407 bytes (added by salty-horse, 15 years ago)

Caret position change

  • gui/editable.cpp

     
    6565        // TODO: We probably should filter the input string here,
    6666        // e.g. using tryInsertChar.
    6767        _editString = str;
    68         _caretPos = _editString.size();
     68        _caretPos = 0;
    6969}
    7070
    7171bool EditableWidget::tryInsertChar(byte c, int pos) {