numux 2.10.1 → 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 +10 -3
- 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];
|
|
@@ -2721,6 +2721,13 @@ class GhosttyTerminalRenderable extends TextBufferRenderable {
|
|
|
2721
2721
|
return this.y + lineYOffset;
|
|
2722
2722
|
}
|
|
2723
2723
|
}
|
|
2724
|
+
var EMPTY_LINE_INFO = { lineStarts: [], lineStartCols: [], lineWidthColsMax: 0, lineSources: [] };
|
|
2725
|
+
Object.defineProperty(GhosttyTerminalRenderable.prototype, "lineInfo", {
|
|
2726
|
+
get() {
|
|
2727
|
+
return this.textBufferView?.logicalLineInfo ?? EMPTY_LINE_INFO;
|
|
2728
|
+
},
|
|
2729
|
+
configurable: true
|
|
2730
|
+
});
|
|
2724
2731
|
|
|
2725
2732
|
// src/utils/timestamp.ts
|
|
2726
2733
|
var DEFAULT_TIMESTAMP_FORMAT = "HH:mm:ss";
|