LuaAppendCmd
This commit is contained in:
@@ -91,7 +91,15 @@ void Open(String16 path) {
|
||||
Open(string);
|
||||
}
|
||||
|
||||
int LuaExec(lua_State *L) {
|
||||
int LuaAppendCmd(lua_State *L) {
|
||||
String string = lua_tostring(L, 1);
|
||||
lua_pop(L, 1);
|
||||
String working_dir = GetCurrentBufferDir();
|
||||
Exec(ConsoleViewID, true, string, working_dir);
|
||||
return 0;
|
||||
}
|
||||
|
||||
int LuaNewCmd(lua_State *L) {
|
||||
String string = lua_tostring(L, 1);
|
||||
lua_pop(L, 1);
|
||||
|
||||
@@ -203,7 +211,8 @@ luaL_Reg LuaFunctions[] = {
|
||||
{ "print", LuaPrint},
|
||||
{ "Print", LuaPrint},
|
||||
{ "Kill", LuaKill},
|
||||
{ "c", LuaExec},
|
||||
{ "NewC", LuaNewCmd},
|
||||
{ "AppendC", LuaAppendCmd},
|
||||
{ NULL, NULL},
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user