Commit b559b53b authored by Lukas Holecek's avatar Lukas Holecek Committed by hjk
Browse files

fakevim: Fixed undo/redo with page down/up in insert mode



Change-Id: Ie657e9d5aeed71a3c301349df031a90237ba6eb8
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 4503ce66
......@@ -3301,10 +3301,12 @@ EventResult FakeVimHandler::Private::handleInsertMode(const Input &input)
} else if (input.isKey(Key_PageDown) || input.isControl('f')) {
removeAutomaticIndentation();
moveDown(count() * (linesOnScreen() - 2));
breakEditBlock();
m_lastInsertion.clear();
} else if (input.isKey(Key_PageUp) || input.isControl('b')) {
removeAutomaticIndentation();
moveUp(count() * (linesOnScreen() - 2));
breakEditBlock();
m_lastInsertion.clear();
} else if (input.isKey(Key_Tab)) {
m_justAutoIndented = 0;
......
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