diff --git a/src/plugins/coreplugin/actionsfilter.cpp b/src/plugins/coreplugin/actionsfilter.cpp index d7d3b06bae5..fd27fefdf20 100644 --- a/src/plugins/coreplugin/actionsfilter.cpp +++ b/src/plugins/coreplugin/actionsfilter.cpp @@ -110,8 +110,8 @@ QList ActionsFilter::matchesFor(QFutureInterface ActionsFilter::matchesFor(QFutureInterface border) { - // skip this highlight since it starts before and ends after the border - // between the concatenated strings + const int firstStart = start; + const int firstLength = border - start; + const int secondStart = 0; + const int secondLength = length - firstLength - 1; + if (first == Highlight::DisplayName) { + highlight.startsDisplay.append(firstStart); + highlight.lengthsDisplay.append(firstLength); + highlight.startsExtraInfo.append(secondStart); + highlight.lengthsExtraInfo.append(secondLength); + } else { + highlight.startsExtraInfo.append(firstStart); + highlight.lengthsExtraInfo.append(firstLength); + highlight.startsDisplay.append(secondStart); + highlight.lengthsDisplay.append(secondLength); + } continue; } if (type == Highlight::DisplayName) {