Add line function that prints a line of given length

This commit is contained in:
Talia 2018-08-16 08:17:48 +02:00
parent b3ec39a013
commit 2019502368

View file

@ -68,6 +68,8 @@ col = (col) -> tab([{elem} for elem in *col])
row = (row) -> tab{row} row = (row) -> tab{row}
box = (box) -> tab{{box}} box = (box) -> tab{{box}}
line = (len=80) -> print string.rep('─', len)
CLASS = [[ CLASS = [[
print vim.col { print vim.col {
'Class' -- Title 'Class' -- Title
@ -90,7 +92,7 @@ DRAW = [[
{ {
:tree, :box, :tab, :col, :row :tree, :box, :tab, :col, :row, :line
:CLASS, :DRAW :CLASS, :DRAW
-- Aliases -- Aliases
table: tab table: tab