From 88a6820e9eefe4db4785dc20dd9b453340286591 Mon Sep 17 00:00:00 2001 From: lyokha Date: Fri, 15 Mar 2019 16:07:52 +0300 Subject: [PATCH] updated for the new aligns feature --- autoload/vimwiki/tbl.vim | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/autoload/vimwiki/tbl.vim b/autoload/vimwiki/tbl.vim index c2af1db..5c3f97d 100644 --- 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