From 3683ae697764031b2f06af8da9716a59256110dc Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 24 Jan 2009 19:35:29 -0500 Subject: Added Find in Files support. --- src/lua_interface.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lua_interface.c') diff --git a/src/lua_interface.c b/src/lua_interface.c index cc9103f3..2e9c3f5f 100644 --- a/src/lua_interface.c +++ b/src/lua_interface.c @@ -1296,6 +1296,8 @@ static int l_find_mt_index(lua_State *lua) { lua_pushboolean(lua, toggled(whole_word_opt)); else if (streq(key, "lua")) lua_pushboolean(lua, toggled(lua_opt)); + else if (streq(key, "in_files")) + lua_pushboolean(lua, toggled(in_files_opt)); else lua_rawget(lua, 1); return 1; @@ -1314,6 +1316,8 @@ static int l_find_mt_newindex(lua_State *lua) { toggle(whole_word_opt, lua_toboolean(lua, -1) ? TRUE : FALSE); else if (streq(key, "lua")) toggle(lua_opt, lua_toboolean(lua, -1) ? TRUE : FALSE); + else if (streq(key, "in_files")) + toggle(in_files_opt, lua_toboolean(lua, -1) ? TRUE : FALSE); else lua_rawset(lua, 1); return 0; -- cgit v1.2.3