forked from qt-creator/qt-creator
FakeVim: Clear suggestions on mode change
Change-Id: I5d3a37ab61f83a70e055063de397654f5621401d Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1591,6 +1591,11 @@ void FakeVimPluginPrivate::editorOpened(IEditor *editor)
|
||||
tew->setExtraSelections(TextEditorWidget::FakeVimSelection, selection);
|
||||
});
|
||||
|
||||
handler->modeChanged.connect([tew]() {
|
||||
if (tew)
|
||||
tew->clearSuggestion();
|
||||
});
|
||||
|
||||
handler->highlightMatches.connect([](const QString &needle) {
|
||||
for (IEditor *editor : EditorManager::visibleEditors()) {
|
||||
QWidget *w = editor->widget();
|
||||
|
||||
Reference in New Issue
Block a user