fakevim: support snippets, by doing nothing.

Reviewed-by: con
Task-number: QTCREATORBUG-4379
This commit is contained in:
hjk
2011-04-06 14:55:26 +02:00
parent 09a3615191
commit 54eac56c00
3 changed files with 13 additions and 0 deletions

View File

@@ -1105,6 +1105,13 @@ EventResult FakeVimHandler::Private::handleEvent(QKeyEvent *ev)
return EventPassedToCore;
}
bool inSnippetMode = false;
QMetaObject::invokeMethod(editor(),
"inSnippetMode", Q_ARG(bool *, &inSnippetMode));
if (inSnippetMode)
return EventPassedToCore;
// Fake "End of line"
//m_tc = cursor();