From f5b349e8ca6ef0f0e77f98c66c9eab88b3490a66 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 8 Jul 2008 19:32:14 -0400 Subject: Fix bug when file is not matched in modules/lua/commands.lua. --- modules/lua/commands.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') diff --git a/modules/lua/commands.lua b/modules/lua/commands.lua index 6e227262..96bac9ab 100644 --- a/modules/lua/commands.lua +++ b/modules/lua/commands.lua @@ -49,6 +49,7 @@ function goto_required() file = line:match(patt) if file then break end end + if not file then return end file = file:sub(2, -2):gsub('%.', '/') for path in package.path:gmatch('[^;]+') do path = path:gsub('?', file) -- cgit v1.2.3