Commit 68dd1284 authored by hjk's avatar hjk
Browse files

fakevim: implement Ctrl-y

parent e8cc9963
......@@ -2541,6 +2541,12 @@ EventResult FakeVimHandler::Private::handleCommandMode(const Input &input)
m_movetype = MoveLineWise;
m_submode = YankSubMode;
finishMovement();
} else if (input.isControl('y')) {
// FIXME: this should use the "scroll" option, and "count"
if (cursorLineOnScreen() == linesOnScreen() - 1)
moveUp(1);
scrollUp(1);
finishMovement();
} else if (input.is('y') && isNoVisualMode()) {
setAnchor();
m_submode = YankSubMode;
......
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