aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-04-08 20:03:38 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-04-08 20:03:38 -0400
commit469ab58856f356fc32f3d101f228de43e615767c (patch)
tree1dc0b9f62cb2fdea3ba36ada04908619a6e1ab7e
parentd7d389404806cf9a512cbe2b7d9700fe983a40d6 (diff)
downloadtextadept-469ab58856f356fc32f3d101f228de43e615767c.tar.gz
textadept-469ab58856f356fc32f3d101f228de43e615767c.zip
Fixed bug in Lua module commands; modules/lua/commands.lua
Thanks to Rob Gieseke.
-rw-r--r--modules/lua/commands.lua2
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