diff options
author | 2008-07-08 19:32:14 -0400 | |
---|---|---|
committer | 2008-07-08 19:32:14 -0400 | |
commit | f5b349e8ca6ef0f0e77f98c66c9eab88b3490a66 (patch) | |
tree | 8584860f9167efb902d6a41cd0459748a412362c | |
parent | a07c1edda32ec7b7ad44e15afcfd38cc071b5578 (diff) | |
download | textadept-f5b349e8ca6ef0f0e77f98c66c9eab88b3490a66.tar.gz textadept-f5b349e8ca6ef0f0e77f98c66c9eab88b3490a66.zip |
Fix bug when file is not matched in modules/lua/commands.lua.
-rw-r--r-- | modules/lua/commands.lua | 1 |
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) |