fakevim: [num]'-'/'+' moves to first non-blank of previous/next but ([num]-1)th line

Merge-request: 96
Reviewed-by: hjk <qtc-committer@nokia.com>
This commit is contained in:
Martin Aumüller
2010-01-05 18:42:26 +01:00
committed by hjk
parent 29236ea356
commit f08176cc49

View File

@@ -1208,7 +1208,12 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
finishMovement(); finishMovement();
} else if (key == '-') { } else if (key == '-') {
moveToStartOfLine(); moveToStartOfLine();
moveUp(); moveUp(count());
moveToFirstNonBlankOnLine();
finishMovement();
} else if (key == '+') {
moveToStartOfLine();
moveDown(count());
moveToFirstNonBlankOnLine(); moveToFirstNonBlankOnLine();
finishMovement(); finishMovement();
} else if (key == Key_Home) { } else if (key == Key_Home) {