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

Fix #650 – horizontal table delimiter treated wrong
This commit is contained in:
Alexey Radkov authored and Michael F. Schönitzer committed 2019-04-01 23:13:24 +02:00
1 parent e91150478e
commit e0fffb470a
1 file changed
+1 -1
+1 -1
View File
@@ -254,7 +254,7 @@ function! s:get_rows(lnum, ...)
while lnum <= line('$')
let line = getline(lnum)
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 clen = len(cells)
let max_lens = repeat([0], clen)