瀏覽代碼

Adds protection to hopefully address #226

main
Eric Amodio 7 年之前
父節點
當前提交
8344c33d4a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      src/currentLineController.ts

+ 1
- 1
src/currentLineController.ts 查看文件

@ -360,7 +360,7 @@ export class CurrentLineController extends Disposable {
private async updateTrailingAnnotation(commit: GitCommit, blameLine: GitCommitLine, editor: TextEditor, line?: number) {
const state = this.getLineAnnotationState();
if (!state.enabled || state.annotationType !== LineAnnotationType.Trailing) return;
if (!state.enabled || state.annotationType !== LineAnnotationType.Trailing || !isTextEditor(editor)) return;
line = line === undefined ? blameLine.line : line;

Loading…
取消
儲存