From ff6de24eeded17d1773a62da046dd08c2895dc89 Mon Sep 17 00:00:00 2001 From: Ahmad Humayun Date: Sun, 2 Jul 2017 23:44:23 -0400 Subject: [PATCH] Fixed no help message bug for CmdLine Commit 2c85c1f improved CmdLine help message formatting - but it started crashing when no help message was given. This problem is fixed in this commit. --- CmdLine.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CmdLine.lua b/CmdLine.lua index a9aa6609..a53a0b3f 100644 --- a/CmdLine.lua +++ b/CmdLine.lua @@ -19,7 +19,7 @@ local function block_txt(str, pre_pad, block_sz) local start_i = 0 local end_i = 0 - while end_i do + while end_i and str do -- start search for text ahead of previous last position start_i = end_i + 1 -- newline if the string already has text