commit e0f4ab8c5e59b92218e7479f18f6e4d58eaa4cdb
parent ad8e1d30bf217e2985671652960d28ecedb6ea75
Author: Лёха <alexey.radkov@gmail.com>
Date: Mon, 18 Mar 2019 23:28:58 +0300
Revert implementation of function s:get_cell_aligns()
This commit reverses a change to s:get_cell_aligns introduced by
bdcfca1e5ce10b571d4ecacc9e2c3527f54fe226.
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git 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)