aboutsummaryrefslogtreecommitdiff
path: root/src/lutf8libjit.patch
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2015-04-18 10:45:40 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2015-04-18 10:45:40 -0400
commit2ea71f33574a0235d9cdb31ccc17fc76493bdd47 (patch)
treef38cac680d906932a9247789cdacd6df6d438964 /src/lutf8libjit.patch
parenta65b51f92a80fcbc46f1f176ddcf6a37eefcca02 (diff)
downloadtextadept-2ea71f33574a0235d9cdb31ccc17fc76493bdd47.tar.gz
textadept-2ea71f33574a0235d9cdb31ccc17fc76493bdd47.zip
Fixed 'require' bug with lfs and utf8 in LuaJIT version.
Diffstat (limited to 'src/lutf8libjit.patch')
-rw-r--r--src/lutf8libjit.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lutf8libjit.patch b/src/lutf8libjit.patch
index 72a09840..4aa347d6 100644
--- a/src/lutf8libjit.patch
+++ b/src/lutf8libjit.patch
@@ -7,7 +7,7 @@
-LUAMOD_API int luaopen_utf8 (lua_State *L) {
- luaL_newlib(L, funcs);
+int luaopen_utf8 (lua_State *L) {
-+ lua_newtable(L), luaL_register(L, NULL, funcs);
++ lua_newtable(L), luaL_register(L, "utf8", funcs);
+ lua_pushvalue(L, -1), lua_setglobal(L, "utf8");
lua_pushliteral(L, UTF8PATT);
lua_setfield(L, -2, "charpattern");