Browse Source

Adds protection to hopefully address #226

main
Eric Amodio 7 years ago
parent
commit
8344c33d4a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/currentLineController.ts

+ 1
- 1
src/currentLineController.ts View File

@ -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…
Cancel
Save