fakevim: Fix cursor position after pasting text at end of line

Change-Id: I5017d5f6987cea12b1eb26212fbe5fe813bf73cb
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Lukas Holecek
2012-10-08 19:44:05 +02:00
committed by hjk
parent 9054cc1833
commit 8bed5c33f9
2 changed files with 3 additions and 2 deletions

View File

@@ -5472,8 +5472,6 @@ void FakeVimHandler::Private::pasteText(bool afterCursor)
if (pasteAfter && rightDist() > 0)
moveRight();
insertText(text.repeated(count()));
if (!pasteAfter && atEndOfLine())
moveLeft();
moveLeft();
break;
}