Skip to content

Commit aa53e9a

Browse files
authored
Avoid truncating output in ---doc mode
fixes #3049
1 parent 5275a75 commit aa53e9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: script/vm/infer.lua

+2-1
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,8 @@ function mt:view(uri, default)
473473
end
474474
end
475475

476-
if #view > 200 then
476+
-- do not truncate if exporting doc
477+
if not DOC and #view > 200 then
477478
view = view:sub(1, 180) .. '...(too long)...' .. view:sub(-10)
478479
end
479480

0 commit comments

Comments
 (0)