diff options
Diffstat (limited to 'WebCore/inspector/front-end/Panel.js')
-rw-r--r-- | WebCore/inspector/front-end/Panel.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/WebCore/inspector/front-end/Panel.js b/WebCore/inspector/front-end/Panel.js index 6cd200b..d816ce5 100644 --- a/WebCore/inspector/front-end/Panel.js +++ b/WebCore/inspector/front-end/Panel.js @@ -231,8 +231,11 @@ WebInspector.Panel.prototype = { showFirstResult = true; } - if (currentView !== this.visibleView) - this.showView(currentView); + if (currentView !== this.visibleView) { + currentView = this.visibleView; + this._currentSearchResultIndex = 0; + showFirstResult = true; + } if (showFirstResult) currentView.jumpToFirstSearchResult(); |