aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--modules/lua/commands.lua1
1 files changed, 1 insertions, 0 deletions
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)