From e0fffb470a4aa622a081e73efdd86c3e1ac99da1 Mon Sep 17 00:00:00 2001 From: Alexey Radkov Date: Tue, 2 Apr 2019 00:13:24 +0300 Subject: [PATCH] Separator line in a table requires special treatment (#651) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix #650 – horizontal table delimiter treated wrong --- autoload/vimwiki/tbl.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autoload/vimwiki/tbl.vim b/autoload/vimwiki/tbl.vim index 8bd9fcf..10385de 100644 --- a/autoload/vimwiki/tbl.vim +++ b/autoload/vimwiki/tbl.vim @@ -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)