Running OK with luaconsole.cpp

This commit is contained in:
2021-01-23 16:31:16 -05:00
parent b897c10506
commit 37a05fe1ac
4 changed files with 30 additions and 37 deletions

View File

@@ -60,8 +60,8 @@ void LuaConsole::add(std::string line) {
state_ = STATE_SYNTAX;
}
} else {
state_ = STATE_COMPLETE;
syntax_ = "";
state_ = STATE_COMPLETE;
}
lua_settop(lua_state_, top);
}