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

Change-Id: Ie657e9d5aeed71a3c301349df031a90237ba6eb8
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Lukas Holecek
2012-09-03 20:58:05 +02:00
committed by hjk
parent 4503ce663a
commit b559b53ba6

View File

@@ -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;