forked from qt-creator/qt-creator
fakevim: support snippets, by doing nothing.
Reviewed-by: con Task-number: QTCREATORBUG-4379
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user