@xterm/xterm 6.1.0-beta.279 → 6.1.0-beta.280

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.279",
4
+ "version": "6.1.0-beta.280",
5
5
  "main": "lib/xterm.js",
6
6
  "module": "lib/xterm.mjs",
7
7
  "style": "css/xterm.css",
@@ -119,5 +119,5 @@
119
119
  "ws": "^8.20.0",
120
120
  "xterm-benchmark": "^0.3.2"
121
121
  },
122
- "commit": "7c24c580072daea61f607c102d515f37cf2dbb17"
122
+ "commit": "f33f502267455f40e64a89a6a554b8d6beae6284"
123
123
  }
@@ -536,9 +536,14 @@ export class DomRenderer extends Disposable implements IRenderer {
536
536
  for (let y = start; y <= end; y++) {
537
537
  const row = y + buffer.ydisp;
538
538
  const rowElement = this._rowElements[y];
539
+ if (!rowElement) {
540
+ continue;
541
+ }
539
542
  const lineData = buffer.lines.get(row);
540
- if (!rowElement || !lineData) {
541
- break;
543
+ if (!lineData) {
544
+ rowElement.replaceChildren();
545
+ this._setRowBlinkState(y, false);
546
+ continue;
542
547
  }
543
548
  rowElement.replaceChildren(
544
549
  ...this._rowFactory.createRow(
@@ -610,9 +615,14 @@ export class DomRenderer extends Disposable implements IRenderer {
610
615
  for (let i = y; i <= y2; ++i) {
611
616
  const row = i + buffer.ydisp;
612
617
  const rowElement = this._rowElements[i];
618
+ if (!rowElement) {
619
+ continue;
620
+ }
613
621
  const bufferline = buffer.lines.get(row);
614
- if (!rowElement || !bufferline) {
615
- break;
622
+ if (!bufferline) {
623
+ rowElement.replaceChildren();
624
+ this._setRowBlinkState(i, false);
625
+ continue;
616
626
  }
617
627
  rowElement.replaceChildren(
618
628
  ...this._rowFactory.createRow(
@@ -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.279';
9
+ export const XTERM_VERSION = '6.1.0-beta.280';