Commit 9ab2d3d0 authored by Lukas Holecek's avatar Lukas Holecek Committed by hjk
Browse files

fakevim: Removed 'J' from movement commands



Change-Id: I5d3e39c6ea717008a3e555f4370827ed876affd1
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 966e0d0a
......@@ -3050,15 +3050,6 @@ bool FakeVimHandler::Private::handleMovement(const Input &input)
m_movetype = MoveLineWise;
moveDown(count);
movement = "j";
} else if (input.is('J')) {
moveBehindEndOfLine();
const int pos = position();
beginEditBlock();
if (m_submode == NoSubMode)
joinLines(count, m_gflag);
endEditBlock();
setPosition(pos);
setDotCommand("%1J", count);
} else if (input.is('k') || input.isKey(Key_Up) || input.isControl('p')) {
m_movetype = MoveLineWise;
moveUp(count);
......@@ -3426,6 +3417,15 @@ bool FakeVimHandler::Private::handleNoSubMode(const Input &input)
enterInsertMode();
} else if (input.isControl('i')) {
jump(count());
} else if (input.is('J')) {
moveBehindEndOfLine();
const int pos = position();
beginEditBlock();
if (m_submode == NoSubMode)
joinLines(count, m_gflag);
endEditBlock();
setPosition(pos);
setDotCommand("%1J", count);
} else if (input.isControl('l')) {
// screen redraw. should not be needed
} else if (input.is('m')) {
......
Supports Markdown
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