opencode-miniterm 1.0.7 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-miniterm",
3
- "version": "1.0.7",
3
+ "version": "1.0.8",
4
4
  "description": "A small front-end terminal UI for OpenCode",
5
5
  "main": "src/index.ts",
6
6
  "bin": {
package/src/render.ts CHANGED
@@ -269,6 +269,7 @@ export function wrapText(text: string, width: number): string[] {
269
269
 
270
270
  addWord(word, wordVisibleLength);
271
271
  atLineStart = false;
272
+ lineIndent = "";
272
273
  }
273
274
  }
274
275
 
@@ -346,8 +346,8 @@ describe("wrapText", () => {
346
346
  });
347
347
 
348
348
  it("should preserve indents", () => {
349
- const result = wrapText("line1\n line2\n line3", 20);
350
- expect(result).toEqual([" line1", " line2", " line3"]);
349
+ const result = wrapText("line1\n line2 extra\n line3", 20);
350
+ expect(result).toEqual([" line1", " line2 extra", " line3"]);
351
351
  });
352
352
  });
353
353