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