aboutsummaryrefslogtreecommitdiff
path: root/modules/lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2011-12-12 08:08:18 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2011-12-12 08:08:18 -0500
commit51bfd53e48d5310eb786069b758e0430129daf54 (patch)
tree15eedf68fad753b1fad5184c4d018bfced1e4001 /modules/lua
parentdfacbd6a183f6b09498f589e20f146cbbf332e88 (diff)
downloadtextadept-51bfd53e48d5310eb786069b758e0430129daf54.tar.gz
textadept-51bfd53e48d5310eb786069b758e0430129daf54.zip
Updated to Lua 5.2.
Diffstat (limited to 'modules/lua')
-rw-r--r--modules/lua/init.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lua/init.lua b/modules/lua/init.lua
index 8a7fb860..ea4b7874 100644
--- a/modules/lua/init.lua
+++ b/modules/lua/init.lua
@@ -156,7 +156,7 @@ events.connect(events.FILE_AFTER_SAVE, function()
local buffer = buffer
buffer:annotation_clear_all()
local text = buffer:get_text():gsub('^#![^\n]+', '') -- ignore shebang line
- local f, err = loadstring(text)
+ local f, err = load(text)
if f then return end
local line, msg = err:match('^.-:(%d+):%s*(.+)$')
if line then