Skip to content

Commit

Permalink
Fixed no help message bug for CmdLine
Browse files Browse the repository at this point in the history
Commit 2c85c1f improved CmdLine help message formatting - but it started
crashing when no help message was given. This problem is fixed in this
commit.
  • Loading branch information
ahmadh84 committed Jul 3, 2017
1 parent 2c85c1f commit ff6de24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CmdLine.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff6de24

Please sign in to comment.