From 856cb0d8ec1f6cf8a09ecea1e376c928ee3b5400 Mon Sep 17 00:00:00 2001 From: "Yuichiro Tachibana (Tsuchiya)" Date: Tue, 16 Jan 2024 12:25:45 +0900 Subject: [PATCH] Fix KillYanker.onDidChangeTextEditorSelection to compare the TextEditor identity as same as 9d1d9be (#1818) --- src/kill-yank/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; }