From 469ab58856f356fc32f3d101f228de43e615767c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 8 Apr 2010 20:03:38 -0400 Subject: Fixed bug in Lua module commands; modules/lua/commands.lua Thanks to Rob Gieseke. --- modules/lua/commands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') 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 -- cgit v1.2.3