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

FakeVim: Set correct target column for "|" command



Change-Id: I5d3465a8b4e58fb2e56429cdd0b33a940211485f
Reviewed-by: default avatarhjk <hjk121@nokiamail.com>
parent a588af80
......@@ -3844,7 +3844,10 @@ bool FakeVimHandler::Private::handleMovement(const Input &input)
g.movetype = MoveLineWise;
} else if (input.is('|')) {
moveToStartOfLine();
moveRight(qMin(count, rightDist()) - 1);
const int column = count - 1;
moveRight(qMin(column, rightDist() - 1));
m_targetColumn = column;
m_visualTargetColumn = column;
} else if (input.is('}')) {
handled = moveToNextParagraph(count);
} else if (input.is('{')) {
......
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