@opentui/core 0.1.66 → 0.1.67
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/3d.js +1 -1
- package/{index-h33hh1n5.js → index-zj0wwh9d.js} +39 -3
- package/{index-h33hh1n5.js.map → index-zj0wwh9d.js.map} +5 -5
- package/index.js +9 -13
- package/index.js.map +4 -4
- package/package.json +7 -7
- package/renderer.d.ts +1 -0
- package/testing.js +1 -1
- package/zig-structs.d.ts +1 -0
- package/zig.d.ts +9 -0
package/index.js
CHANGED
|
@@ -150,7 +150,7 @@ import {
|
|
|
150
150
|
white,
|
|
151
151
|
wrapWithDelegates,
|
|
152
152
|
yellow
|
|
153
|
-
} from "./index-
|
|
153
|
+
} from "./index-zj0wwh9d.js";
|
|
154
154
|
// src/text-buffer-view.ts
|
|
155
155
|
class TextBufferView {
|
|
156
156
|
lib;
|
|
@@ -2855,6 +2855,9 @@ class CodeRenderable extends TextBufferRenderable {
|
|
|
2855
2855
|
this._content = value;
|
|
2856
2856
|
this._highlightsDirty = true;
|
|
2857
2857
|
this._highlightSnapshotId++;
|
|
2858
|
+
if (this._streaming && !this._drawUnstyledText && this._filetype) {
|
|
2859
|
+
return;
|
|
2860
|
+
}
|
|
2858
2861
|
this.textBuffer.setText(value);
|
|
2859
2862
|
this.updateTextInfo();
|
|
2860
2863
|
}
|
|
@@ -2929,17 +2932,7 @@ class CodeRenderable extends TextBufferRenderable {
|
|
|
2929
2932
|
const isInitialContent = this._streaming && !this._hadInitialContent;
|
|
2930
2933
|
const shouldDrawUnstyledNow = this._streaming ? isInitialContent && this._drawUnstyledText : this._drawUnstyledText;
|
|
2931
2934
|
if (this._streaming && !isInitialContent) {
|
|
2932
|
-
|
|
2933
|
-
const chunks = treeSitterToTextChunks(content, this._lastHighlights, this._syntaxStyle, {
|
|
2934
|
-
enabled: this._conceal
|
|
2935
|
-
});
|
|
2936
|
-
const partialStyledText = new StyledText(chunks);
|
|
2937
|
-
this.textBuffer.setStyledText(partialStyledText);
|
|
2938
|
-
this._shouldRenderTextBuffer = true;
|
|
2939
|
-
this.updateTextInfo();
|
|
2940
|
-
} else {
|
|
2941
|
-
this._shouldRenderTextBuffer = true;
|
|
2942
|
-
}
|
|
2935
|
+
this._shouldRenderTextBuffer = true;
|
|
2943
2936
|
} else if (shouldDrawUnstyledNow) {
|
|
2944
2937
|
this.textBuffer.setText(content);
|
|
2945
2938
|
this._shouldRenderTextBuffer = true;
|
|
@@ -7931,6 +7924,9 @@ class EditBufferRenderable extends Renderable {
|
|
|
7931
7924
|
set showCursor(value) {
|
|
7932
7925
|
if (this._showCursor !== value) {
|
|
7933
7926
|
this._showCursor = value;
|
|
7927
|
+
if (!value && this._focused) {
|
|
7928
|
+
this._ctx.setCursorPosition(0, 0, false);
|
|
7929
|
+
}
|
|
7934
7930
|
this.requestRender();
|
|
7935
7931
|
}
|
|
7936
7932
|
}
|
|
@@ -8989,5 +8985,5 @@ export {
|
|
|
8989
8985
|
ASCIIFont
|
|
8990
8986
|
};
|
|
8991
8987
|
|
|
8992
|
-
//# debugId=
|
|
8988
|
+
//# debugId=664AA4C104E6AC8E64756E2164756E21
|
|
8993
8989
|
//# sourceMappingURL=index.js.map
|