From 9f4062f702a198c1cc9e1adfb4fb14570d8655ca Mon Sep 17 00:00:00 2001 From: Nicolas Noble Date: Tue, 23 Jul 2013 16:31:58 -0700 Subject: Updating Balau for its StdIO module, and introducing Dalos-modules to hold non-low level stuff, such as readline support. --- src/Dalos-cli.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Dalos-cli.cc') 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); } } -- cgit v1.2.3