Commit 18b74f08 authored by hjk's avatar hjk Committed by hjk
Browse files

fakevim: handle cursor keys in Replace mode

Task-number: QTCREATORBUG-5647
Change-Id: I06bf6b859ac5111b5692c003aab2d003a0c7b11c
Reviewed-on: http://codereview.qt.nokia.com/2552

Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent ab574ba8
......@@ -2764,6 +2764,21 @@ EventResult FakeVimHandler::Private::handleReplaceMode(const Input &input)
m_submode = NoSubMode;
m_mode = CommandMode;
finishMovement();
} else if (input.isKey(Key_Left)) {
breakEditBlock();
moveLeft(1);
setTargetColumn();
} else if (input.isKey(Key_Right)) {
breakEditBlock();
moveRight(1);
setTargetColumn();
} else if (input.isKey(Key_Up)) {
breakEditBlock();
moveUp(1);
setTargetColumn();
} else if (input.isKey(Key_Down)) {
breakEditBlock();
moveDown(1);
} else {
joinPreviousEditBlock();
if (!atEndOfLine()) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment