FakeVim: Fix dot command for pasting

Fixes: QTCREATORBUG-25281
Change-Id: Ic36b87672889442520941bcefa0f5ee14b77fbc6
Reviewed-by: Lukas Holecek <hluk@email.cz>
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Tom Praschan
2021-01-26 18:15:03 +01:00
committed by Tom Praschan
parent bcde1ead55
commit b1f1ecb1b5
2 changed files with 11 additions and 0 deletions

View File

@@ -4520,6 +4520,8 @@ bool FakeVimHandler::Private::handleNoSubMode(const Input &input)
} else if (input.isControl('o')) {
jump(-count());
} else if (input.is('p') || input.is('P') || input.isShift(Qt::Key_Insert)) {
dotCommand = QString("\"%1%2p").arg(QChar(m_register)).arg(count());
pasteText(!input.is('P'));
setTargetColumn();
finishMovement();