diff --git a/src/plugins/texteditor/texteditor.cpp b/src/plugins/texteditor/texteditor.cpp index 1495003c79c..88d575f4780 100644 --- a/src/plugins/texteditor/texteditor.cpp +++ b/src/plugins/texteditor/texteditor.cpp @@ -7825,10 +7825,13 @@ void TextEditorWidgetPrivate::setExtraSelections(Id kind, const QListsetVisible(!m_overlay->isEmpty()); } else { - QList all; + QList all = m_extraSelections.value( + TextEditorWidget::OtherSelection); + for (auto i = m_extraSelections.constBegin(); i != m_extraSelections.constEnd(); ++i) { if (i.key() == TextEditorWidget::CodeSemanticsSelection - || i.key() == TextEditorWidget::SnippetPlaceholderSelection) + || i.key() == TextEditorWidget::SnippetPlaceholderSelection + || i.key() == TextEditorWidget::OtherSelection) continue; all += i.value(); }