1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-17 15:07:38 +00:00

Fix help crashing on terminal resize

Closes #870. Woops.
This commit is contained in:
Jonathan Coates
2021-07-24 22:58:23 +01:00
parent 0568c86628
commit 03396cf07a

View File

@@ -265,7 +265,7 @@ while true do
local new_width, new_height = term.getSize()
if new_width ~= width then
lines = word_wrap(contents, new_width)
lines, fg, bg = word_wrap(contents, new_width)
print_height = #lines
end