From 67e5974eee035d338b4135ac1fdde298460906d6 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 25 Oct 2019 04:04:17 -0700 Subject: [PATCH] Set disposed marker line to -1 Another indicator that it's disposed/invalid --- src/common/buffer/Marker.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/buffer/Marker.ts b/src/common/buffer/Marker.ts index 7f52ac99cf..9a4256d376 100644 --- a/src/common/buffer/Marker.ts +++ b/src/common/buffer/Marker.ts @@ -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(); }