浏览代码

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;

正在加载...
取消
保存