Fixes: fakevim: explicitly make 'l' an 'exclusive' motion

This commit is contained in:
hjk
2009-01-28 18:35:05 +01:00
parent 8c773beb45
commit 53ab86dceb
2 changed files with 4 additions and 0 deletions

View File

@@ -986,6 +986,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
finishMovement();
m_desiredColumn = savedColumn;
} else if (key == 'l' || key == Key_Right) {
m_moveType = MoveExclusive;
moveRight(qMin(count(), rightDist()));
finishMovement();
} else if (key == 'L') {
@@ -1099,6 +1100,7 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
moveToNextWord(true);
finishMovement("W");
} else if (key == 'x') { // = "dl"
m_moveType = MoveExclusive;
if (atEndOfLine())
moveLeft();
recordBeginGroup();