forked from qt-creator/qt-creator
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:
@@ -3301,10 +3301,12 @@ EventResult FakeVimHandler::Private::handleInsertMode(const Input &input)
|
|||||||
} else if (input.isKey(Key_PageDown) || input.isControl('f')) {
|
} else if (input.isKey(Key_PageDown) || input.isControl('f')) {
|
||||||
removeAutomaticIndentation();
|
removeAutomaticIndentation();
|
||||||
moveDown(count() * (linesOnScreen() - 2));
|
moveDown(count() * (linesOnScreen() - 2));
|
||||||
|
breakEditBlock();
|
||||||
m_lastInsertion.clear();
|
m_lastInsertion.clear();
|
||||||
} else if (input.isKey(Key_PageUp) || input.isControl('b')) {
|
} else if (input.isKey(Key_PageUp) || input.isControl('b')) {
|
||||||
removeAutomaticIndentation();
|
removeAutomaticIndentation();
|
||||||
moveUp(count() * (linesOnScreen() - 2));
|
moveUp(count() * (linesOnScreen() - 2));
|
||||||
|
breakEditBlock();
|
||||||
m_lastInsertion.clear();
|
m_lastInsertion.clear();
|
||||||
} else if (input.isKey(Key_Tab)) {
|
} else if (input.isKey(Key_Tab)) {
|
||||||
m_justAutoIndented = 0;
|
m_justAutoIndented = 0;
|
||||||
|
Reference in New Issue
Block a user