diff --git a/packages/devtools_app/lib/src/ui/search.dart b/packages/devtools_app/lib/src/ui/search.dart index 257c7dbf197..29c9d93a3b6 100644 --- a/packages/devtools_app/lib/src/ui/search.dart +++ b/packages/devtools_app/lib/src/ui/search.dart @@ -101,6 +101,7 @@ mixin SearchControllerMixin { // [matchIndex] is 1-based. Subtract 1 for the 0-based list [searchMatches]. final activeMatchIndex = matchIndex.value - 1; if (activeMatchIndex < 0) { + _activeSearchMatch.value?.isActiveSearchMatch = false; _activeSearchMatch.value = null; return; }