Index: Source/devtools/front_end/source_frame/SourceFrame.js |
diff --git a/Source/devtools/front_end/source_frame/SourceFrame.js b/Source/devtools/front_end/source_frame/SourceFrame.js |
index 0b46edd8ce19748fa7893ad8ccd16c9e2f34667d..6333845d720316da54a26fc195f7fa2000c2f79e 100644 |
--- a/Source/devtools/front_end/source_frame/SourceFrame.js |
+++ b/Source/devtools/front_end/source_frame/SourceFrame.js |
@@ -424,6 +424,7 @@ WebInspector.SourceFrame.prototype = { |
var regex = WebInspector.SourceFrame._createSearchRegexForConfig(searchConfig); |
this._searchRegex = regex; |
this._searchResults = this._collectRegexMatches(regex); |
+ searchFinishedCallback(this, this._searchResults.length); |
if (!this._searchResults.length) |
this._textEditor.cancelSearchResultsHighlight(); |
else if (shouldJump && jumpBackwards) |
@@ -432,7 +433,6 @@ WebInspector.SourceFrame.prototype = { |
this.jumpToNextSearchResult(); |
else |
this._textEditor.highlightSearchResults(regex, null); |
- searchFinishedCallback(this, this._searchResults.length); |
}, |
/** |