forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user