diff options
Diffstat (limited to 'src/Dalos-cli.cc')
-rw-r--r-- | src/Dalos-cli.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Dalos-cli.cc b/src/Dalos-cli.cc index ab15256..fedec88 100644 --- a/src/Dalos-cli.cc +++ b/src/Dalos-cli.cc @@ -105,12 +105,12 @@ void MainTask::Do() { break; } - if (*line_read) - add_history(line_read); + if (!*line_read) + continue; - String line = line_read; + add_history(line_read); - LuaExecString luaExecString(line); + LuaExecString luaExecString(line_read); luaExecString.exec(luaMainTask); } } |