aboutsummaryrefslogtreecommitdiff
path: root/core/ext
diff options
context:
space:
mode:
Diffstat (limited to 'core/ext')
-rw-r--r--core/ext/mime_types.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ext/mime_types.lua b/core/ext/mime_types.lua
index 5ada2b38..489f1d4a 100644
--- a/core/ext/mime_types.lua
+++ b/core/ext/mime_types.lua
@@ -92,7 +92,7 @@ local function load_language_module_from_filename(filename)
if lang then
local ret, err = pcall(require, lang)
if ret then
- modules[lang].set_buffer_properties()
+ _m[lang].set_buffer_properties()
elseif not ret and not err:match("^module '"..lang.."' not found:") then
textadept.handlers.error(err)
end