Separator line in a table requires special treatment (#651)

Fix #650 – horizontal table delimiter treated wrong
This commit is contained in:
Alexey Radkov 2019-04-02 00:13:24 +03:00 committed by Michael F. Schönitzer
parent e91150478e
commit e0fffb470a

View File

@ -254,7 +254,7 @@ function! s:get_rows(lnum, ...)
while lnum <= line('$') while lnum <= line('$')
let line = getline(lnum) let line = getline(lnum)
if s:is_table(line) if s:is_table(line)
if lnum == a:lnum if lnum == a:lnum && !s:is_separator(line)
let cells = vimwiki#tbl#get_cells(line) let cells = vimwiki#tbl#get_cells(line)
let clen = len(cells) let clen = len(cells)
let max_lens = repeat([0], clen) let max_lens = repeat([0], clen)