Commit 685162aa authored by hjk's avatar hjk Committed by Roberto Raggi
Browse files

fix <count>D and EOL behaviour

parent 8b663b35
......@@ -341,7 +341,8 @@ void FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
m_submode = DeleteSubMode;
} else if (key == 'D') {
m_submode = DeleteSubMode;
m_tc.movePosition(EndOfLine, KeepAnchor);
m_tc.movePosition(Down, KeepAnchor, qMax(count() - 1, 0));
m_tc.movePosition(Right, KeepAnchor, rightDist());
finishMovement();
} else if (key == 'e') {
moveToWordBoundary(false, true);
......
Supports Markdown
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