updated for the new aligns feature

This commit is contained in:
lyokha 2019-03-15 16:07:52 +03:00
parent fa6342c454
commit 88a6820e9e
1 changed files with 4 additions and 1 deletions

View File

@ -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