aboutsummaryrefslogtreecommitdiff
path: root/modules/lua/commands.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-06-10 22:54:51 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-06-10 22:54:51 -0400
commit7af3a62b748ab62596b6815ac97c9cf527513a6c (patch)
tree3b9aa55c6fe0b34bd71cbad9aacca2c90c01a07f /modules/lua/commands.lua
parent13dc7390e0ddfe7f2a1b11d5b50265a74448e44f (diff)
downloadtextadept-7af3a62b748ab62596b6815ac97c9cf527513a6c.tar.gz
textadept-7af3a62b748ab62596b6815ac97c9cf527513a6c.zip
Moved textadept.io into Lua's io table.
Renamed textadept.io.open to textadept.io.open_file to prevent conflicts.
Diffstat (limited to 'modules/lua/commands.lua')
-rw-r--r--modules/lua/commands.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/lua/commands.lua b/modules/lua/commands.lua
index ac68ab84..5f544ae0 100644
--- a/modules/lua/commands.lua
+++ b/modules/lua/commands.lua
@@ -69,7 +69,7 @@ function goto_required()
for path in package.path:gmatch('[^;]+') do
path = path:gsub('?', file)
if lfs.attributes(path) then
- textadept.io.open(textadept.iconv(path, 'UTF-8', _CHARSET))
+ io.open_file(textadept.iconv(path, 'UTF-8', _CHARSET))
break
end
end
@@ -80,7 +80,7 @@ local keys = _G.keys
if type(keys) == 'table' then
keys.lua = {
al = {
- m = { textadept.io.open,
+ m = { io.open_file,
textadept.iconv(_HOME..'/modules/lua/init.lua',
'UTF-8', _CHARSET) },
g = { goto_required },