From 6ecaf97000e6af09fd8e110c00c332e60d3facba Mon Sep 17 00:00:00 2001 From: Maddy <12754347+MaddyDev@users.noreply.github.com> Date: Tue, 7 Jul 2020 12:02:35 -0700 Subject: [PATCH] set currentMatch on find changes only (#11223) --- src/sql/workbench/contrib/notebook/browser/notebookEditor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sql/workbench/contrib/notebook/browser/notebookEditor.ts b/src/sql/workbench/contrib/notebook/browser/notebookEditor.ts index 6b8c791bb1..d24db9e808 100644 --- a/src/sql/workbench/contrib/notebook/browser/notebookEditor.ts +++ b/src/sql/workbench/contrib/notebook/browser/notebookEditor.ts @@ -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); } }