@xterm/xterm 6.1.0-beta.89 → 6.1.0-beta.90

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.89",
4
+ "version": "6.1.0-beta.90",
5
5
  "main": "lib/xterm.js",
6
6
  "module": "lib/xterm.mjs",
7
7
  "style": "css/xterm.css",
@@ -114,5 +114,5 @@
114
114
  "ws": "^8.2.3",
115
115
  "xterm-benchmark": "^0.3.1"
116
116
  },
117
- "commit": "ccf9727b8583a551cb92fa6552c7380319872397"
117
+ "commit": "c97abced76fe3ca2191b86f6c03c1275b6d4e696"
118
118
  }
@@ -1154,7 +1154,10 @@ export class InputHandler extends Disposable implements IInputHandler {
1154
1154
  * @param respectProtect Whether to respect the protection attribute (DECSCA).
1155
1155
  */
1156
1156
  private _eraseInBufferLine(y: number, start: number, end: number, clearWrap: boolean = false, respectProtect: boolean = false): void {
1157
- const line = this._activeBuffer.lines.get(this._activeBuffer.ybase + y)!;
1157
+ const line = this._activeBuffer.lines.get(this._activeBuffer.ybase + y);
1158
+ if (!line) {
1159
+ return;
1160
+ }
1158
1161
  line.replaceCells(
1159
1162
  start,
1160
1163
  end,
@@ -1224,7 +1227,10 @@ export class InputHandler extends Disposable implements IInputHandler {
1224
1227
  this._eraseInBufferLine(j, 0, this._activeBuffer.x + 1, true, respectProtect);
1225
1228
  if (this._activeBuffer.x + 1 >= this._bufferService.cols) {
1226
1229
  // Deleted entire previous line. This next line can no longer be wrapped.
1227
- this._activeBuffer.lines.get(j + 1)!.isWrapped = false;
1230
+ const nextLine = this._activeBuffer.lines.get(j + 1);
1231
+ if (nextLine) {
1232
+ nextLine.isWrapped = false;
1233
+ }
1228
1234
  }
1229
1235
  while (j--) {
1230
1236
  this._resetBufferLine(j, respectProtect);
@@ -6,4 +6,4 @@
6
6
  /**
7
7
  * The xterm.js version. This is updated by the publish script from package.json.
8
8
  */
9
- export const XTERM_VERSION = '6.1.0-beta.89';
9
+ export const XTERM_VERSION = '6.1.0-beta.90';