summaryrefslogtreecommitdiff
path: root/src/Dalos-cli.cc
diff options
context:
space:
mode:
authorNicolas Noble <nnoble@blizzard.com>2013-07-23 16:31:58 -0700
committerNicolas Noble <nnoble@blizzard.com>2013-07-23 16:31:58 -0700
commit9f4062f702a198c1cc9e1adfb4fb14570d8655ca (patch)
treeeaf0e452fbd8f9c905d08aaf42b4053f00a5f7c2 /src/Dalos-cli.cc
parent66d11fde580c218a927aac8e88b4f4cd982710a7 (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.cc8
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);
}
}