Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1372)

Unified Diff: Source/devtools/front_end/source_frame/SourceFrame.js

Issue 704243002: DevTools: Fix initial match index showing in sources panel editor search. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
},
/**
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698