set currentMatch on find changes only (#11223)

This commit is contained in:
Maddy
2020-07-07 12:02:35 -07:00
committed by GitHub
parent ee918e7b32
commit 6ecaf97000

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);
}
}