diff options
author | Soumith Chintala <soumith@fb.com> | 2015-03-16 23:26:32 +0300 |
---|---|---|
committer | Soumith Chintala <soumith@fb.com> | 2015-03-16 23:26:32 +0300 |
commit | 9e1bcff0dfbf1bf259397da76271242c7daf0efc (patch) | |
tree | 0fb29bd189b928208ee03def68cadb11f155e096 /init.lua | |
parent | 6eb66884bdb5416cf6ae3675a1c4a3ebac2f8758 (diff) |
adding back selfhelp
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -552,7 +552,10 @@ function repl() -- Shortcut to get help: if line and line:find('^%s-?') then - if dok_loaded_ok then + if line:gsub('^%s-?','') == '' then + print(selfhelp) + line = nil + elseif dok_loaded_ok then line = 'help(' .. line:gsub('^%s-?','') .. ')' else print('error: could not load help backend') |