Commit ccfbdf5b authored by hjk's avatar hjk
Browse files

Fixes: fakevim: implement 'zz'

parent 598df2ba
......@@ -697,6 +697,9 @@ bool FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
scrollToLineInDocument(cursorLineInDocument() - linesOnScreen() / 2);
moveToFirstNonBlankOnLine();
finishMovement();
} else if (key == 'z') { // center cursor line
scrollToLineInDocument(cursorLineInDocument() - linesOnScreen() / 2);
finishMovement();
} else {
qDebug() << "IGNORED Z_MODE " << key << text;
}
......
Markdown is supported
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