forked from qt-creator/qt-creator
basic implementation for 'O'
This commit is contained in:
@@ -489,6 +489,13 @@ void FakeVimHandler::Private::handleCommandMode(int key, const QString &text)
|
|||||||
//m_tc.beginEditBlock(); // FIXME: unusable due to drawing errors
|
//m_tc.beginEditBlock(); // FIXME: unusable due to drawing errors
|
||||||
m_tc.movePosition(EndOfLine, MoveAnchor);
|
m_tc.movePosition(EndOfLine, MoveAnchor);
|
||||||
m_tc.insertText("\n");
|
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') {
|
} else if (key == 'p') {
|
||||||
QString text = m_registers[m_register];
|
QString text = m_registers[m_register];
|
||||||
int n = text.count(QChar(ParagraphSeparator));
|
int n = text.count(QChar(ParagraphSeparator));
|
||||||
|
|||||||
Reference in New Issue
Block a user