Skip to content

Commit ff6de24

Browse files
committed
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.
1 parent 2c85c1f commit ff6de24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CmdLine.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ local function block_txt(str, pre_pad, block_sz)
1919
local start_i = 0
2020
local end_i = 0
2121

22-
while end_i do
22+
while end_i and str do
2323
-- start search for text ahead of previous last position
2424
start_i = end_i + 1
2525
-- newline if the string already has text

0 commit comments

Comments
 (0)