Improve doc printer when printWidth: Infinity (#14638)
This commit is contained in:
1 parent
ca2c0ccacb
commit
a78e514d77
1 file changed
+4
@@ -201,6 +201,10 @@ function fits(
|
||||
groupModeMap,
|
||||
mustBeFlat
|
||||
) {
|
||||
if (width === Number.POSITIVE_INFINITY) {
|
||||
return true;
|
||||
}
|
||||
|
||||
let restIdx = restCommands.length;
|
||||
/** @type {Array<Omit<Command, 'ind'>>} */
|
||||
const cmds = [next];
|
||||
|
||||
Reference in new issue
Block a user