fakevim: Yank with up/down movement ends in same column

Yank followed by vertical movement ends in same column as at the
beginning of the command (or at the end of line if line ha less
columns).

Change-Id: I573a8435ba9b76430fa3778e536726882f4c6ce1
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Lukas Holecek
2012-11-26 18:59:51 +01:00
committed by hjk
parent ece5a4a33b
commit 6868fedf4d
2 changed files with 10 additions and 2 deletions

View File

@@ -2620,8 +2620,12 @@ void FakeVimHandler::Private::finishMovement(const QString &dotCommandMovement)
setPosition(qMin(pos1, pos2) + col);
} else {
setPosition(qMin(position(), anchor()));
if (m_rangemode == RangeLineMode)
moveToStartOfLine();
if (m_rangemode == RangeLineMode) {
if (isVisualMode())
moveToStartOfLine();
else
setTargetColumn();
}
}
leaveVisualMode();
} else if (m_submode == InvertCaseSubMode