Skip to content

Commit

Permalink
Merge pull request #2510 from Tyriar/line_one
Browse files Browse the repository at this point in the history
Set disposed marker line to -1
  • Loading branch information
Tyriar authored Oct 25, 2019
2 parents 4bd721c + 67e5974 commit 7487d61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/common/buffer/Marker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ export class Marker extends Disposable implements IMarker {
return;
}
this.isDisposed = true;
this.line = -1;
// Emit before super.dispose such that dispose listeners get a change to react
this._onDispose.fire();
}
Expand Down

0 comments on commit 7487d61

Please sign in to comment.