Skip to content

Commit

Permalink
Fixed|libgui: Inserting more than one character at a time
Browse files Browse the repository at this point in the history
The cursor position needs to be moved according to the amount of
characters inserted.
  • Loading branch information
skyjake committed Jun 6, 2013
1 parent 1ed818a commit 3883891
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion doomsday/libshell/src/abstractlineeditor.cpp
Expand Up @@ -150,7 +150,8 @@ DENG2_PIMPL(AbstractLineEditor)
void insert(String const &str)
{
acceptCompletion();
text.insert(cursor++, str);
text.insert(cursor, str);
cursor += str.size();
rewrapNow();
}

Expand Down

0 comments on commit 3883891

Please sign in to comment.