numux 2.2.0 → 2.2.1

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.
Files changed (2) hide show
  1. package/dist/numux.js +10 -3
  2. package/package.json +1 -1
package/dist/numux.js CHANGED
@@ -36,7 +36,7 @@ var __commonJS = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports,
36
36
  var require_package = __commonJS((exports, module) => {
37
37
  module.exports = {
38
38
  name: "numux",
39
- version: "2.2.0",
39
+ version: "2.2.1",
40
40
  description: "Terminal multiplexer with dependency orchestration",
41
41
  type: "module",
42
42
  license: "MIT",
@@ -2247,7 +2247,12 @@ class Pane {
2247
2247
  if (text) {
2248
2248
  this._onCopy?.(text);
2249
2249
  } else {
2250
- queueMicrotask(() => renderer.clearSelection());
2250
+ const stale = renderer.getSelection();
2251
+ queueMicrotask(() => {
2252
+ if (renderer.getSelection() === stale) {
2253
+ renderer.clearSelection();
2254
+ }
2255
+ });
2251
2256
  }
2252
2257
  }
2253
2258
  return result;
@@ -2568,6 +2573,7 @@ class StatusBar {
2568
2573
  bg: "#1a1a1a",
2569
2574
  paddingX: 1
2570
2575
  });
2576
+ this.renderable.selectable = false;
2571
2577
  }
2572
2578
  setSearchMode(active, query = "", matchCount = 0, currentIndex = -1, crossProcessInfo) {
2573
2579
  this._searchMode = active;
@@ -3208,9 +3214,10 @@ class App {
3208
3214
  // src/ui/prefix.ts
3209
3215
  var RESET = ANSI_RESET;
3210
3216
  var DIM = "\x1B[90m";
3217
+ var CHA_COL1_RE = /\x1b\[1?G/g;
3211
3218
  var CURSOR_SEQ_RE = /\x1b\[[\d;]*[ABCDEFGHJKLMSTdf]/g;
3212
3219
  function stripCursorSequences(text) {
3213
- return text.replace(CURSOR_SEQ_RE, "");
3220
+ return text.replace(CHA_COL1_RE, "\r").replace(CURSOR_SEQ_RE, "");
3214
3221
  }
3215
3222
 
3216
3223
  class PrefixDisplay {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "numux",
3
- "version": "2.2.0",
3
+ "version": "2.2.1",
4
4
  "description": "Terminal multiplexer with dependency orchestration",
5
5
  "type": "module",
6
6
  "license": "MIT",