@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/lib/xterm.js +1 -1
- package/lib/xterm.js.map +1 -1
- package/lib/xterm.mjs +1 -1
- package/lib/xterm.mjs.map +3 -3
- package/package.json +2 -2
- package/src/common/Version.ts +1 -1
- package/src/common/buffer/BufferReflow.ts +4 -1
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.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": "
|
|
114
|
+
"commit": "f3e2c08a5df33510e0088ae86125371ad8194a4e"
|
|
115
115
|
}
|
package/src/common/Version.ts
CHANGED
|
@@ -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
|
-
|
|
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
|