aboutsummaryrefslogtreecommitdiff
path: root/src/LuaRuntime.cpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-04-05 15:41:10 +0530
committerAkshay Nair <phenax5@gmail.com>2025-04-05 16:00:03 +0530
commitc4413f3cca0a0750af9881276162b70f3489b499 (patch)
treeeb1cbf577f0751e7293e3d1e96147bc36e48719e /src/LuaRuntime.cpp
parent1d9cd2bcb69ccbccea67166f9d42ec8ff6892fae (diff)
downloadnull-browser-c4413f3cca0a0750af9881276162b70f3489b499.tar.gz
null-browser-c4413f3cca0a0750af9881276162b70f3489b499.zip
Add history storage and completion + split dmenu,history into modules
Diffstat (limited to 'src/LuaRuntime.cpp')
-rw-r--r--src/LuaRuntime.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/LuaRuntime.cpp b/src/LuaRuntime.cpp
index 70301b4..328cd89 100644
--- a/src/LuaRuntime.cpp
+++ b/src/LuaRuntime.cpp
@@ -115,7 +115,7 @@ int LuaRuntime::lua_event_register(lua_State *state) {
preserve_top(state, {
lua_rawgeti(state, LUA_REGISTRYINDEX, function_ref);
event->lua_push(state);
- lua_call(state, 1, 0);
+ lua_pcall(state, 1, 0, 0);
})
};