diff options
author | 2012-07-21 09:34:51 -0400 | |
---|---|---|
committer | 2012-07-21 09:34:51 -0400 | |
commit | 5a50a7e55b870ae66a6bb69fcd3a7bd1841f3d9b (patch) | |
tree | 7b7d99c5a42cf7597d00815f941b8070439f32d7 /core/init.lua | |
parent | 53de5fafa2344ae17a0457a34c7a6a866f1020d1 (diff) | |
download | textadept-5a50a7e55b870ae66a6bb69fcd3a7bd1841f3d9b.tar.gz textadept-5a50a7e55b870ae66a6bb69fcd3a7bd1841f3d9b.zip |
Lua code cleanup and API changes.
Diffstat (limited to 'core/init.lua')
-rw-r--r-- | core/init.lua | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/core/init.lua b/core/init.lua index a43061ca..97fbdde2 100644 --- a/core/init.lua +++ b/core/init.lua @@ -46,19 +46,6 @@ _M = {} -- modules table -- If Textadept is running in the terminal, this flag is `true`. module('_G')]] ---- --- Calls `dofile()` on the given filename in the user's Textadept directory. --- Errors are printed to the Textadept message buffer. --- @param filename The name of the file (not path). --- @return `true` if successful; `false` otherwise. --- @see dofile -function user_dofile(filename) - if not lfs.attributes(_USERHOME..'/'..filename) then return false end - local ok, err = pcall(dofile, _USERHOME..'/'..filename) - if not ok then gui.print(err) end - return ok -end - --[[ The tables below were defined in C. --- |