diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2019-12-31 14:05:09 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2019-12-31 14:05:09 +0100 |
commit | b8a5504021e0d21310bc603855ac8107828b5759 (patch) | |
tree | 2f2bf182b686597e7cc4c4f1b7d35881f9993f55 /autoload/csv.vim | |
parent | cea0d08a062478503814e51aa21c6486a0dd1b21 (diff) | |
download | vim-polyglot-b8a5504021e0d21310bc603855ac8107828b5759.tar.gz vim-polyglot-b8a5504021e0d21310bc603855ac8107828b5759.zip |
Update
Diffstat (limited to 'autoload/csv.vim')
-rw-r--r-- | autoload/csv.vim | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/autoload/csv.vim b/autoload/csv.vim index a035e3d5..1fbf7c2a 100644 --- a/autoload/csv.vim +++ b/autoload/csv.vim @@ -122,7 +122,7 @@ fu! csv#Init(start, end, ...) "{{{3 " Enable vartabs for tab delimited files if b:delimiter=="\t" && has("vartabs")&& !exists("b:csv_fixed_width_cols") if get(b:, 'col_width', []) ==# [] - call csv#CalculateColumnWidth(line('$')) + call csv#CalculateColumnWidth(line('$'), 1) endif let &l:vts=join(b:col_width, ',') let g:csv_no_conceal=1 @@ -636,7 +636,7 @@ fu! csv#ArrangeCol(first, last, bang, limit, ...) range "{{{3 endif let cur=winsaveview() " Force recalculation of Column width - let row = exists("a:1") ? a:1 : '' + let row = exists("a:1") ? a:1 : line('$') if a:bang || !empty(row) if a:bang && exists("b:col_width") " Unarrange, so that if csv_arrange_align has changed @@ -670,7 +670,7 @@ fu! csv#ArrangeCol(first, last, bang, limit, ...) range "{{{3 endif if !exists("b:col_width") - call csv#CalculateColumnWidth(row) + call csv#CalculateColumnWidth(row, 1) endif " abort on empty file |