aboutsummaryrefslogtreecommitdiff
path: root/core/init.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-11-23 19:09:21 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2010-11-23 19:09:21 -0500
commit5f29cb8190dbee6bb10b4eb904c8c39750de352d (patch)
treeef9d178b4834087d829702d4894ec3b9330f3c0b /core/init.lua
parent1f3bbef0357b89f82a65d1e67caa1980eee3f40b (diff)
downloadtextadept-5f29cb8190dbee6bb10b4eb904c8c39750de352d.tar.gz
textadept-5f29cb8190dbee6bb10b4eb904c8c39750de352d.zip
Code cleanup.
Also modified the editing module's enclose() and select_enclosed() functions.
Diffstat (limited to 'core/init.lua')
-rw-r--r--core/init.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/init.lua b/core/init.lua
index 6f2dbedb..6cd82211 100644
--- a/core/init.lua
+++ b/core/init.lua
@@ -27,12 +27,12 @@ if not _THEME:find('[/\\]') then
if not lfs.attributes(_THEME) then _THEME = _HOME..'/themes/'..theme end
end
--- LuaDoc is in core/._G.lua.
+-- LuaDoc is in core/._G.luadoc.
function _G.user_dofile(filename)
if lfs.attributes(_USERHOME..'/'..filename) then
- local ret, errmsg = pcall(dofile, _USERHOME..'/'..filename)
- if not ret then gui.print(errmsg) end
- return ret
+ local ok, err = pcall(dofile, _USERHOME..'/'..filename)
+ if not ok then gui.print(err) end
+ return ok
end
return false
end