diff options
-rw-r--r-- | modules/lua/commands.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/lua/commands.lua b/modules/lua/commands.lua index ee6cbbe5..53d7f0dd 100644 --- a/modules/lua/commands.lua +++ b/modules/lua/commands.lua @@ -58,7 +58,7 @@ function goto_required() local lfs = require 'lfs' for path in package.path:gmatch('[^;]+') do path = path:gsub('?', file) - if lfs.attributes(file) then + if lfs.attributes(path) then textadept.io.open(textadept.iconv(path, 'UTF-8', _CHARSET)) break end |