set currentMatch on find changes only (#11215)

This commit is contained in:
Maddy
2020-07-06 17:33:22 -07:00
committed by GitHub
parent aa4045c8a9
commit ac78822d90

View File

@@ -346,7 +346,7 @@ export class NotebookEditor extends BaseEditor implements IFindNotebookControlle
this._findDecorations.getCount(),
this._currentMatch
);
if (this._finder.getDomNode().style.visibility === 'visible') {
if (this._finder.getDomNode().style.visibility === 'visible' && this._previousMatch !== this._currentMatch) {
this._setCurrentFindMatch(this._currentMatch);
}
}