From 735ce084226e163a789d3787b05cf6750da6d97a Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Thu, 16 Aug 2018 08:20:46 +0200 Subject: [PATCH] Add line2 command which prints a double line --- lua/vim.moon | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lua/vim.moon b/lua/vim.moon index 22c8e7b..34e3515 100644 --- a/lua/vim.moon +++ b/lua/vim.moon @@ -69,6 +69,10 @@ row = (row) -> tab{row} box = (box) -> tab{{box}} 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 = [[ print vim.col { @@ -92,7 +96,7 @@ DRAW = [[ { - :tree, :box, :tab, :col, :row, :line + :tree, :box, :tab, :col, :row, :line, :line2 :CLASS, :DRAW -- Aliases table: tab