summaryrefslogtreecommitdiffstats
path: root/autoload/csv.vim
diff options
context:
space:
mode:
Diffstat (limited to 'autoload/csv.vim')
-rw-r--r--autoload/csv.vim6
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