diff options
author | 2011-12-12 08:08:18 -0500 | |
---|---|---|
committer | 2011-12-12 08:08:18 -0500 | |
commit | 51bfd53e48d5310eb786069b758e0430129daf54 (patch) | |
tree | 15eedf68fad753b1fad5184c4d018bfced1e4001 /modules/lua | |
parent | dfacbd6a183f6b09498f589e20f146cbbf332e88 (diff) | |
download | textadept-51bfd53e48d5310eb786069b758e0430129daf54.tar.gz textadept-51bfd53e48d5310eb786069b758e0430129daf54.zip |
Updated to Lua 5.2.
Diffstat (limited to 'modules/lua')
-rw-r--r-- | modules/lua/init.lua | 2 |
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 |