forked from qt-creator/qt-creator
fakevim: fix 'dd' when cursor is not in the first column
Was seemingly broken by the target columns changes. Autotest is added now, too.
This commit is contained in:
@@ -877,10 +877,12 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
|
||||
finishMovement();
|
||||
} else if (m_submode == DeleteSubMode && key == 'd') { // tested
|
||||
moveToStartOfLine();
|
||||
setTargetColumn();
|
||||
setAnchor();
|
||||
moveDown(count());
|
||||
m_moveType = MoveLineWise;
|
||||
finishMovement("d");
|
||||
setDotCommand("%1dd", count());
|
||||
finishMovement();
|
||||
} else if (m_submode == YankSubMode && key == 'y') {
|
||||
moveToStartOfLine();
|
||||
setAnchor();
|
||||
|
||||
Reference in New Issue
Block a user