Skip to content

Commit

Permalink
Fix KillYanker.onDidChangeTextEditorSelection to compare the TextEdit…
Browse files Browse the repository at this point in the history
…or identity as same as 9d1d9be (#1818)
  • Loading branch information
whitphx authored Jan 16, 2024
1 parent 4abfca9 commit 856cb0d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/kill-yank/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 856cb0d

Please sign in to comment.