Commit 0dc5a124 authored by hjk's avatar hjk Committed by Roberto Raggi
Browse files

basic implementation for 'O'

parent 50cf2a7a
......@@ -489,6 +489,13 @@ void FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
//m_tc.beginEditBlock(); // FIXME: unusable due to drawing errors
m_tc.movePosition(EndOfLine, MoveAnchor);
m_tc.insertText("\n");
} else if (key == 'O') {
m_mode = InsertMode;
m_lastInsertion.clear();
//m_tc.beginEditBlock(); // FIXME: unusable due to drawing errors
m_tc.movePosition(StartOfLine, MoveAnchor);
m_tc.movePosition(Left, MoveAnchor, 1);
m_tc.insertText("\n");
} else if (key == 'p') {
QString text = m_registers[m_register];
int n = text.count(QChar(ParagraphSeparator));
......
Supports Markdown
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