aboutsummaryrefslogtreecommitdiff
path: root/src/lua_interface.c
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-01-24 19:35:29 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-01-24 19:35:29 -0500
commit3683ae697764031b2f06af8da9716a59256110dc (patch)
tree438cb2a2b8694a4af4f5824d322ae6869682fcc8 /src/lua_interface.c
parenteca986bf03db898995fd1742af981ed94d2746bf (diff)
downloadtextadept-3683ae697764031b2f06af8da9716a59256110dc.tar.gz
textadept-3683ae697764031b2f06af8da9716a59256110dc.zip
Added Find in Files support.
Diffstat (limited to 'src/lua_interface.c')
-rw-r--r--src/lua_interface.c4
1 files changed, 4 insertions, 0 deletions
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;