diff --git a/lua/vim.moon b/lua/vim.moon index b9270d5..172fb5e 100644 --- a/lua/vim.moon +++ b/lua/vim.moon @@ -10,6 +10,10 @@ match_all = (str, pat, init=0) -> return str\sub(s,e), match_all(str, pat, e+1) match_lines = (str) -> match_all(str, '[^\n]+') +-- ┌──────────────────┐ +-- │ Actual Functions │ +-- └──────────────────┘ + tree = (tab, pref='') -> print tab.title and tab.title or '┐' @@ -27,10 +31,6 @@ tree = (tab, pref='') -> pad = (str='', len) -> str..string.rep(" ", len-#str) --- ┌──────────────────┐ --- │ Actual Functions │ --- └──────────────────┘ - import max from math chktbl = (obj) -> error("Object is not a table", 2) if type(obj) ~= 'table'