forked from qt-creator/qt-creator
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:
committed by
Tom Praschan
parent
bcde1ead55
commit
b1f1ecb1b5
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user