Add line2 command which prints a double line
This commit is contained in:
parent
2019502368
commit
735ce08422
1 changed files with 5 additions and 1 deletions
|
@ -69,6 +69,10 @@ row = (row) -> tab{row}
|
||||||
box = (box) -> tab{{box}}
|
box = (box) -> tab{{box}}
|
||||||
|
|
||||||
line = (len=80) -> print string.rep('─', len)
|
line = (len=80) -> print string.rep('─', len)
|
||||||
|
line2 = (len=80) ->
|
||||||
|
error('Length must be at least 2 characters', 2) if len < 2
|
||||||
|
print '┌'..string.rep('─', len-2)..'┐'
|
||||||
|
print '└'..string.rep('─', len-2)..'┘'
|
||||||
|
|
||||||
CLASS = [[
|
CLASS = [[
|
||||||
print vim.col {
|
print vim.col {
|
||||||
|
@ -92,7 +96,7 @@ DRAW = [[
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
:tree, :box, :tab, :col, :row, :line
|
:tree, :box, :tab, :col, :row, :line, :line2
|
||||||
:CLASS, :DRAW
|
:CLASS, :DRAW
|
||||||
-- Aliases
|
-- Aliases
|
||||||
table: tab
|
table: tab
|
||||||
|
|
Loading…
Reference in a new issue