Move charset service reset out of _setup
This commit is contained in:
+4
-4
@@ -247,9 +247,6 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
|
|||||||
this.insertMode = false;
|
this.insertMode = false;
|
||||||
this.bracketedPasteMode = false;
|
this.bracketedPasteMode = false;
|
||||||
|
|
||||||
// charset
|
|
||||||
this._charsetService.reset();
|
|
||||||
|
|
||||||
this.params = [];
|
this.params = [];
|
||||||
this.currentParam = 0;
|
this.currentParam = 0;
|
||||||
|
|
||||||
@@ -268,7 +265,9 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
|
|||||||
this.register(this._inputHandler);
|
this.register(this._inputHandler);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.linkifier = this.linkifier || new Linkifier(this._bufferService, this._logService);
|
if (!this.linkifier) {
|
||||||
|
this.linkifier = new Linkifier(this._bufferService, this._logService);
|
||||||
|
}
|
||||||
|
|
||||||
if (this.options.windowsMode) {
|
if (this.options.windowsMode) {
|
||||||
this._enableWindowsMode();
|
this._enableWindowsMode();
|
||||||
@@ -1472,6 +1471,7 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
|
|||||||
|
|
||||||
this._setup();
|
this._setup();
|
||||||
this._bufferService.reset();
|
this._bufferService.reset();
|
||||||
|
this._charsetService.reset();
|
||||||
this._coreService.reset();
|
this._coreService.reset();
|
||||||
this._coreMouseService.reset();
|
this._coreMouseService.reset();
|
||||||
this._selectionService?.reset();
|
this._selectionService?.reset();
|
||||||
|
|||||||
Reference in New Issue
Block a user