Commit eb422394 authored by hjk's avatar hjk

fakevim: make 'o' undo work in a single operation

parent 39e11137
......@@ -1406,6 +1406,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
search(lastSearchString(), !m_lastSearchForward);
recordJump();
} else if (key == 'o' || key == 'O') {
beginEditBlock();
setDotCommand("%1o", count());
enterInsertMode();
moveToFirstNonBlankOnLine();
......@@ -1414,6 +1415,7 @@ EventResult FakeVimHandler::Private::handleCommandMode(int key, int unmodified,
moveToEndOfLine();
m_tc.insertText("\n");
insertAutomaticIndentation(key == 'o');
endEditBlock();
} else if (key == control('o')) {
if (!m_jumpListUndo.isEmpty()) {
m_jumpListRedo.append(cursorPosition());
......
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