diff options
author | Nicolas Noble <nnoble@blizzard.com> | 2013-07-23 16:31:58 -0700 |
---|---|---|
committer | Nicolas Noble <nnoble@blizzard.com> | 2013-07-23 16:31:58 -0700 |
commit | 9f4062f702a198c1cc9e1adfb4fb14570d8655ca (patch) | |
tree | eaf0e452fbd8f9c905d08aaf42b4053f00a5f7c2 /src/Dalos-cli.cc | |
parent | 66d11fde580c218a927aac8e88b4f4cd982710a7 (diff) |
Updating Balau for its StdIO module, and introducing Dalos-modules to hold non-low level stuff, such as readline support.
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); } } |