@xterm/xterm 6.1.0-beta.230 → 6.1.0-beta.231
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xterm/xterm",
|
|
3
3
|
"description": "Full xterm terminal, in your browser",
|
|
4
|
-
"version": "6.1.0-beta.
|
|
4
|
+
"version": "6.1.0-beta.231",
|
|
5
5
|
"main": "lib/xterm.js",
|
|
6
6
|
"module": "lib/xterm.mjs",
|
|
7
7
|
"style": "css/xterm.css",
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"ws": "^8.2.3",
|
|
112
112
|
"xterm-benchmark": "^0.3.1"
|
|
113
113
|
},
|
|
114
|
-
"commit": "
|
|
114
|
+
"commit": "b787ac8b1b5e7e6dbe88c32e3bdc5605b64a491c"
|
|
115
115
|
}
|
|
@@ -563,8 +563,9 @@ export class CoreBrowserTerminal extends CoreTerminal implements ITerminal {
|
|
|
563
563
|
|
|
564
564
|
try {
|
|
565
565
|
this._onWillOpen.fire(this.element);
|
|
566
|
+
} catch (e) {
|
|
567
|
+
this._logService.error('onWillOpen handler threw an exception', e);
|
|
566
568
|
}
|
|
567
|
-
catch { /* fails to load addon for some reason */ }
|
|
568
569
|
if (!this._renderService.hasRenderer()) {
|
|
569
570
|
this._renderService.setRenderer(this._createRenderer());
|
|
570
571
|
}
|
|
@@ -9,7 +9,7 @@ import { moveToCellSequence } from 'browser/input/MoveToCell';
|
|
|
9
9
|
import { SelectionModel } from 'browser/selection/SelectionModel';
|
|
10
10
|
import { ISelectionRedrawRequestEvent, ISelectionRequestScrollLinesEvent } from 'browser/selection/Types';
|
|
11
11
|
import { ICoreBrowserService, IMouseCoordsService, IRenderService, ISelectionService } from 'browser/services/Services';
|
|
12
|
-
import { Disposable, toDisposable } from 'common/Lifecycle';
|
|
12
|
+
import { Disposable, MutableDisposable, toDisposable } from 'common/Lifecycle';
|
|
13
13
|
import * as Browser from 'common/Platform';
|
|
14
14
|
import { IBufferLine, ICellData, IDisposable } from 'common/Types';
|
|
15
15
|
import { getRangeLength } from 'common/buffer/BufferRange';
|
|
@@ -102,7 +102,7 @@ export class SelectionService extends Disposable implements ISelectionService {
|
|
|
102
102
|
|
|
103
103
|
private _mouseMoveListener: EventListener;
|
|
104
104
|
private _mouseUpListener: EventListener;
|
|
105
|
-
private _trimListener
|
|
105
|
+
private readonly _trimListener = this._register(new MutableDisposable<IDisposable>());
|
|
106
106
|
private _workCell: CellData = new CellData();
|
|
107
107
|
|
|
108
108
|
private _mouseDownTimeStamp: number = 0;
|
|
@@ -140,7 +140,7 @@ export class SelectionService extends Disposable implements ISelectionService {
|
|
|
140
140
|
this.clearSelection();
|
|
141
141
|
}
|
|
142
142
|
});
|
|
143
|
-
this._trimListener = this._bufferService.buffer.lines.onTrim(amount => this._handleTrim(amount));
|
|
143
|
+
this._trimListener.value = this._bufferService.buffer.lines.onTrim(amount => this._handleTrim(amount));
|
|
144
144
|
this._register(this._bufferService.buffers.onBufferActivate(e => this._handleBufferActivate(e)));
|
|
145
145
|
|
|
146
146
|
this.enable();
|
|
@@ -769,8 +769,7 @@ export class SelectionService extends Disposable implements ISelectionService {
|
|
|
769
769
|
// reverseIndex) and delete in a splice is only ever used when the same
|
|
770
770
|
// number of elements was just added. Given this is could actually be
|
|
771
771
|
// beneficial to leave the selection as is for these cases.
|
|
772
|
-
this._trimListener.
|
|
773
|
-
this._trimListener = e.activeBuffer.lines.onTrim(amount => this._handleTrim(amount));
|
|
772
|
+
this._trimListener.value = e.activeBuffer.lines.onTrim(amount => this._handleTrim(amount));
|
|
774
773
|
}
|
|
775
774
|
|
|
776
775
|
/**
|
package/src/common/Version.ts
CHANGED