forked from qt-creator/qt-creator
FakeVim: Set correct target column for "|" command
Change-Id: I5d3465a8b4e58fb2e56429cdd0b33a940211485f Reviewed-by: hjk <hjk121@nokiamail.com>
This commit is contained in:
@@ -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('{')) {
|
||||
|
||||
Reference in New Issue
Block a user