forked from qt-creator/qt-creator
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:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user