forked from qt-creator/qt-creator
FakeVim: Fix warning about unused lambda capture
Change-Id: I136f52002e02611d41a309809408bcde57aceefe Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -1630,7 +1630,7 @@ void FakeVimPlugin::editorOpened(IEditor *editor)
|
|||||||
*on = tew->multiTextCursor().hasMultipleCursors();
|
*on = tew->multiTextCursor().hasMultipleCursors();
|
||||||
});
|
});
|
||||||
|
|
||||||
handler->simpleCompletionRequested.set([this, handler](const QString &needle, bool forward) {
|
handler->simpleCompletionRequested.set([handler](const QString &needle, bool forward) {
|
||||||
theFakeVimCompletionAssistProvider.setActive(needle, forward, handler);
|
theFakeVimCompletionAssistProvider.setActive(needle, forward, handler);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1764,7 +1764,7 @@ void FakeVimPlugin::editorOpened(IEditor *editor)
|
|||||||
|
|
||||||
handler->tabPreviousRequested.set([] { triggerAction(Core::Constants::GOTOPREVINHISTORY); });
|
handler->tabPreviousRequested.set([] { triggerAction(Core::Constants::GOTOPREVINHISTORY); });
|
||||||
|
|
||||||
handler->completionRequested.set([this, tew] {
|
handler->completionRequested.set([tew] {
|
||||||
if (tew)
|
if (tew)
|
||||||
tew->invokeAssist(Completion, &theFakeVimCompletionAssistProvider);
|
tew->invokeAssist(Completion, &theFakeVimCompletionAssistProvider);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user