diff --git a/src/kill-yank/index.ts b/src/kill-yank/index.ts index f52c2dc862..c50ce37ef3 100644 --- a/src/kill-yank/index.ts +++ b/src/kill-yank/index.ts @@ -68,9 +68,7 @@ export class KillYanker implements vscode.Disposable { } public onDidChangeTextEditorSelection(e: vscode.TextEditorSelectionChangeEvent): void { - const targetEditorId = e.textEditor.document.uri.toString(); - const thisEditorId = this.textEditor.document.uri.toString(); - if (targetEditorId === thisEditorId) { + if (e.textEditor === this.textEditor) { this.docChangedAfterYank = true; this.isAppending = false; }