fakevim: fix 'P' at end of line

previously, the insertion point would have stayed just in front of the last character instead of in
front of the last but first character

Merge-request: 96
Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
Martin Aumüller
2010-01-05 18:42:24 +01:00
committed by hjk
parent b5454e58c9
commit df9335c542

View File

@@ -2792,6 +2792,8 @@ void FakeVimHandler::Private::pasteText(bool afterCursor)
moveRight();
fixMarks(position(), text.length());
m_tc.insertText(text);
if (!afterCursor && atEndOfLine())
moveLeft();
moveLeft();
}
break;