commit 88a6820e9eefe4db4785dc20dd9b453340286591
parent fa6342c454a1b25602922d27ca8157e77584bb69
Author: lyokha <alexey.radkov@gmail.com>
Date: Fri, 15 Mar 2019 16:07:52 +0300
updated for the new aligns feature
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/autoload/vimwiki/tbl.vim b/autoload/vimwiki/tbl.vim
@@ -253,7 +253,10 @@ function! s:get_rows(lnum, ...)
if s:is_table(line)
if lnum == a:lnum
let cells = vimwiki#tbl#get_cells(line)
- let line = s:fmt_row(cells, repeat([0], len(cells)), 0, 0)
+ let clen = len(cells)
+ let max_lens = repeat([0], clen)
+ let aligns = repeat(['left'], clen)
+ let line = s:fmt_row(cells, max_lens, aligns, 0, 0)
endif
call add(rows, [lnum, line])
else