From 03396cf07aee870b10be3e0f167f4ff63b5eef6e Mon Sep 17 00:00:00 2001 From: Jonathan Coates Date: Sat, 24 Jul 2021 22:58:23 +0100 Subject: [PATCH] Fix help crashing on terminal resize Closes #870. Woops. --- src/main/resources/data/computercraft/lua/rom/programs/help.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/data/computercraft/lua/rom/programs/help.lua b/src/main/resources/data/computercraft/lua/rom/programs/help.lua index 43ba258d4..9c7081ecc 100644 --- a/src/main/resources/data/computercraft/lua/rom/programs/help.lua +++ b/src/main/resources/data/computercraft/lua/rom/programs/help.lua @@ -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