aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2008-07-08 19:32:14 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2008-07-08 19:32:14 -0400
commitf5b349e8ca6ef0f0e77f98c66c9eab88b3490a66 (patch)
tree8584860f9167efb902d6a41cd0459748a412362c
parenta07c1edda32ec7b7ad44e15afcfd38cc071b5578 (diff)
downloadtextadept-f5b349e8ca6ef0f0e77f98c66c9eab88b3490a66.tar.gz
textadept-f5b349e8ca6ef0f0e77f98c66c9eab88b3490a66.zip
Fix bug when file is not matched in modules/lua/commands.lua.
-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)