@xterm/xterm 6.1.0-beta.240 → 6.1.0-beta.241

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.240",
4
+ "version": "6.1.0-beta.241",
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": "b138bf38d0729f3170c8349fb1ae733650a21825"
114
+ "commit": "f3e2c08a5df33510e0088ae86125371ad8194a4e"
115
115
  }
@@ -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.240';
9
+ export const XTERM_VERSION = '6.1.0-beta.241';
@@ -178,7 +178,10 @@ export function reflowLargerApplyNewLayout(lines: CircularList<IBufferLine>, new
178
178
  */
179
179
  export function reflowSmallerGetNewLineLengths(wrappedLines: BufferLine[], oldCols: number, newCols: number): number[] {
180
180
  const newLineLengths: number[] = [];
181
- const cellsNeeded = wrappedLines.map((l, i) => getWrappedLineTrimmedLength(wrappedLines, i, oldCols)).reduce((p, c) => p + c);
181
+ let cellsNeeded = 0;
182
+ for (let i = 0; i < wrappedLines.length; i++) {
183
+ cellsNeeded += getWrappedLineTrimmedLength(wrappedLines, i, oldCols);
184
+ }
182
185
 
183
186
  // Use srcCol and srcLine to find the new wrapping point, use that to get the cellsAvailable and
184
187
  // linesNeeded