Skip to content
Snippets Groups Projects
Commit 598df2ba authored by hjk's avatar hjk
Browse files

Fixes: fakevim: implement 'z.'

parent 06762b4c
No related branches found
No related tags found
No related merge requests found
...@@ -693,6 +693,10 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified, ...@@ -693,6 +693,10 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
scrollToLineInDocument(cursorLineInDocument()); scrollToLineInDocument(cursorLineInDocument());
moveToFirstNonBlankOnLine(); moveToFirstNonBlankOnLine();
finishMovement(); finishMovement();
} else if (key == '.') { // center cursor line
scrollToLineInDocument(cursorLineInDocument() - linesOnScreen() / 2);
moveToFirstNonBlankOnLine();
finishMovement();
} else { } else {
qDebug() << "IGNORED Z_MODE " << key << text; qDebug() << "IGNORED Z_MODE " << key << text;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment