Move cursor tracking out of the doc print buffer (#18202)

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
fisker Cheungandautofix-ci[bot] authored and GitHub committed 2025-11-04 03:54:35 +08:00
1 parent bf95d3cdbe
commit b87311a7cd
10 files changed
+325 -106

No files matched your search

+3
View File
@@ -15,6 +15,7 @@ import {
line,
lineSuffix,
markAsRoot,
trim,
} from "../../src/document/index.js";
const invalidDoc = { type: "invalid-type" };
@@ -91,6 +92,8 @@ describe("doc builders", () => {
ifBreak(validDoc, undefined),
align("any string", validDoc),
trim,
];
describe("Invalid usage", () => {