| 1282 | } |
| 1283 | |
| 1284 | static int getCommandHistory(lua_State *state) |
| 1285 | { |
| 1286 | string id = luaL_checkstring(state, 1); |
| 1287 | string src_file = luaL_checkstring(state, 2); |
| 1288 | vector<string> entries; |
| 1289 | ensureCommandHistory(id, src_file)->getEntries(entries); |
| 1290 | Lua::PushVector(state, entries); |
| 1291 | return 1; |
| 1292 | } |
| 1293 | |
| 1294 | static void addCommandToHistory(string id, string src_file, |
| 1295 | string command) { |
nothing calls this directly
no test coverage detected