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
No known key found for this signature in database
GPG Key ID: B9E431FF07C98D06
1 changed files with 1 additions and 1 deletions

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