numux 2.10.2 → 2.10.3
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/dist/numux.js +4 -4
- package/package.json +1 -1
package/dist/numux.js
CHANGED
|
@@ -37,7 +37,7 @@ var __require = import.meta.require;
|
|
|
37
37
|
var require_package = __commonJS((exports, module) => {
|
|
38
38
|
module.exports = {
|
|
39
39
|
name: "numux",
|
|
40
|
-
version: "2.10.
|
|
40
|
+
version: "2.10.3",
|
|
41
41
|
description: "Terminal multiplexer with dependency orchestration",
|
|
42
42
|
type: "module",
|
|
43
43
|
license: "MIT",
|
|
@@ -2704,7 +2704,7 @@ class GhosttyTerminalRenderable extends TextBufferRenderable {
|
|
|
2704
2704
|
this.updateTextInfo();
|
|
2705
2705
|
const lineInfo = this.textBufferView.logicalLineInfo;
|
|
2706
2706
|
if (lineInfo) {
|
|
2707
|
-
this._lineCount = lineInfo.lineStarts.
|
|
2707
|
+
this._lineCount = lineInfo.lineStartCols?.length ?? lineInfo.lineStarts?.length ?? this._lineCount;
|
|
2708
2708
|
}
|
|
2709
2709
|
this._ansiDirty = false;
|
|
2710
2710
|
}
|
|
@@ -2713,7 +2713,7 @@ class GhosttyTerminalRenderable extends TextBufferRenderable {
|
|
|
2713
2713
|
getScrollPositionForLine(lineNumber) {
|
|
2714
2714
|
const clampedLine = Math.max(0, Math.min(lineNumber, this._lineCount - 1));
|
|
2715
2715
|
const lineInfo = this.textBufferView.logicalLineInfo;
|
|
2716
|
-
const lineStarts = lineInfo?.lineStarts;
|
|
2716
|
+
const lineStarts = lineInfo?.lineStartCols ?? lineInfo?.lineStarts;
|
|
2717
2717
|
let lineYOffset = clampedLine;
|
|
2718
2718
|
if (lineStarts && lineStarts.length > clampedLine) {
|
|
2719
2719
|
lineYOffset = lineStarts[clampedLine];
|
|
@@ -2724,7 +2724,7 @@ class GhosttyTerminalRenderable extends TextBufferRenderable {
|
|
|
2724
2724
|
var EMPTY_LINE_INFO = { lineStarts: [], lineStartCols: [], lineWidthColsMax: 0, lineSources: [] };
|
|
2725
2725
|
Object.defineProperty(GhosttyTerminalRenderable.prototype, "lineInfo", {
|
|
2726
2726
|
get() {
|
|
2727
|
-
return this.textBufferView
|
|
2727
|
+
return this.textBufferView?.logicalLineInfo ?? EMPTY_LINE_INFO;
|
|
2728
2728
|
},
|
|
2729
2729
|
configurable: true
|
|
2730
2730
|
});
|