From e0f4ab8c5e59b92218e7479f18f6e4d58eaa4cdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D1=91=D1=85=D0=B0?= Date: Mon, 18 Mar 2019 23:28:58 +0300 Subject: [PATCH] Revert implementation of function s:get_cell_aligns() This commit reverses a change to s:get_cell_aligns introduced by bdcfca1e5ce10b571d4ecacc9e2c3527f54fe226. --- autoload/vimwiki/tbl.vim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/autoload/vimwiki/tbl.vim b/autoload/vimwiki/tbl.vim index 0e67c68..4cc81b7 100644 --- a/autoload/vimwiki/tbl.vim +++ b/autoload/vimwiki/tbl.vim @@ -275,9 +275,9 @@ function! s:get_rows(lnum, ...) endfunction -function! s:get_cell_aligns(lnum, depth) +function! s:get_cell_aligns(lnum) let aligns = {} - for [lnum, row] in s:get_rows(a:lnum, a:depth) + for [lnum, row] in s:get_rows(a:lnum) let found_separator = s:is_separator(row) if found_separator let cells = vimwiki#tbl#get_cells(row) @@ -356,7 +356,7 @@ function! s:get_aligned_rows(lnum, col1, col2, depth) endfor let max_lens = s:get_cell_max_lens(a:lnum, cells, startlnum, rows) endif - let aligns = s:get_cell_aligns(a:lnum, a:depth) + let aligns = s:get_cell_aligns(a:lnum) let result = [] for [lnum, row] in rows if s:is_separator(row)