aboutsummaryrefslogtreecommitdiff
path: root/core/init.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-03-29 19:04:32 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2010-03-29 19:04:32 -0400
commit1177ef981b04a0c368ab4cbad5e0f6bfdd252cb6 (patch)
tree16feac1865912f20d3a5334a9a80c7849f6d4499 /core/init.lua
parent9583dadb72798bddcf14260d263a2b3b9ac451a3 (diff)
downloadtextadept-1177ef981b04a0c368ab4cbad5e0f6bfdd252cb6.tar.gz
textadept-1177ef981b04a0c368ab4cbad5e0f6bfdd252cb6.zip
Use textadept.user_dofile() for user init.lua.
Diffstat (limited to 'core/init.lua')
-rw-r--r--core/init.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/init.lua b/core/init.lua
index 7576e660..505a3b45 100644
--- a/core/init.lua
+++ b/core/init.lua
@@ -105,5 +105,7 @@ function textadept.user_dofile(filename)
if lfs.attributes(_USERHOME..'/'..filename) then
local ret, errmsg = pcall(dofile, _USERHOME..'/'..filename)
if not ret then textadept.print(errmsg) end
+ return ret
end
+ return false
end