@opentui/core 0.5.7 → 0.5.8

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.
@@ -40,7 +40,7 @@ import {
40
40
  toArrayBuffer,
41
41
  treeSitterToTextChunks,
42
42
  yoga_default
43
- } from "./chunk-node-267dafd8.js";
43
+ } from "./chunk-node-mfda59vq.js";
44
44
 
45
45
  // src/Renderable.ts
46
46
  import { EventEmitter } from "events";
@@ -7607,8 +7607,7 @@ Captured external output:
7607
7607
  this.lib.hitGridClearScissorRects(this.rendererPtr);
7608
7608
  }
7609
7609
  get widthMethod() {
7610
- const caps = this.capabilities;
7611
- return caps?.unicode === "wcwidth" ? "wcwidth" : "unicode";
7610
+ return this.capabilities?.unicode ?? this.nextRenderBuffer.widthMethod;
7612
7611
  }
7613
7612
  get frameId() {
7614
7613
  return this._frameId;
@@ -9167,7 +9166,7 @@ Captured external output:
9167
9166
  }
9168
9167
  return true;
9169
9168
  }
9170
- if (mouseEvent.type === "up" && this.currentSelection?.isDragging) {
9169
+ if (mouseEvent.type === "up" && mouseEvent.button === 0 /* LEFT */ && this.currentSelection?.isDragging) {
9171
9170
  if (maybeRenderable) {
9172
9171
  const event2 = new MouseEvent(maybeRenderable, {
9173
9172
  ...mouseEvent,
@@ -9240,7 +9239,7 @@ Captured external output:
9240
9239
  this.setCapturedRenderable(undefined);
9241
9240
  this.lastOverRenderable = undefined;
9242
9241
  }
9243
- if (!event?.defaultPrevented && mouseEvent.type === "down" && this.currentSelection) {
9242
+ if (!event?.defaultPrevented && mouseEvent.type === "down" && mouseEvent.button === 0 /* LEFT */ && this.currentSelection) {
9244
9243
  this.clearSelection();
9245
9244
  }
9246
9245
  return true;
@@ -10309,5 +10308,5 @@ Captured external output:
10309
10308
 
10310
10309
  export { h, isVNode, maybeMakeRenderable, wrapWithDelegates, instantiate, delegate, LayoutEvents, RenderableEvents, isRenderable, BaseRenderable, Renderable, RootRenderable, TextBufferView, EditBuffer, EditorView, convertThemeToStyles, SyntaxStyle, ANSI, BoxRenderable, TextBufferRenderable, CodeRenderable, isTextNodeRenderable, TextNodeRenderable, RootTextNodeRenderable, TextRenderable, NativeSpanFeed, defaultKeyAliases, mergeKeyAliases, mergeKeyBindings, getKeyBindingAction, buildKeyBindingsMap, capture, ConsolePosition, TerminalConsole, getObjectsInViewport, EditBufferRenderableEvents, isEditBufferRenderable, EditBufferRenderable, buildKittyKeyboardFlags, MouseEvent, MouseButton, createCliRenderer, CliRenderEvents, RendererControlState, CliRenderer };
10311
10310
 
10312
- //# debugId=738652C7CB134A7264756E2164756E21
10313
- //# sourceMappingURL=chunk-node-591ssncm.js.map
10311
+ //# debugId=DFE44A27128A73E264756E2164756E21
10312
+ //# sourceMappingURL=chunk-node-kr27pp2p.js.map