aboutsummaryrefslogtreecommitdiff
path: root/core/init.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2018-04-25 22:52:33 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2018-04-25 22:52:33 -0400
commit5f4fbc763a90a38508a0a7d4f4ae7a2262ecbd39 (patch)
treea66ddc4caf4b8a9509330433571d586a6843fe27 /core/init.lua
parent795f72c6d49c0566517a43808ce7aaf405220f31 (diff)
downloadtextadept-5f4fbc763a90a38508a0a7d4f4ae7a2262ecbd39.tar.gz
textadept-5f4fbc763a90a38508a0a7d4f4ae7a2262ecbd39.zip
Removed LuaJIT version of Textadept.
Also updated to Lua 5.3 syntax where held back by LuaJIT's 5.1/5.2 syntax.
Diffstat (limited to 'core/init.lua')
-rw-r--r--core/init.lua11
1 files changed, 0 insertions, 11 deletions
diff --git a/core/init.lua b/core/init.lua
index aa6ece5d..8acc3660 100644
--- a/core/init.lua
+++ b/core/init.lua
@@ -16,17 +16,6 @@ require('ui')
keys = require('keys')
_M = {} -- language modules table
--- LuaJIT compatibility.
-if jit then
- module, package.searchers, bit32 = nil, package.loaders, bit
- -- In Lua 5.3, the `table` library respects metamethods. Redefine at least the
- -- functions Textadept may depend on.
- table.insert = function(list, pos, value)
- if not value then value, pos = pos, #list + 1 end
- for i = #list, pos, -1 do list[i + 1] = list[i] end
- list[pos] = value
- end
-end
-- pdcurses compatibility.
if CURSES and WIN32 then
function spawn(argv, cwd, ...)