diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2020-04-30 16:49:01 +0200 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2020-04-30 16:49:01 +0200 |
commit | 0a7c62b3b22a75f91245a718c1409e4216ae61c8 (patch) | |
tree | 0aa7ff145cf6d7444204350ba97d8c57d404cb5c /autoload/csv.vim | |
parent | c7b5826d53f3f4fe31e8168e1d8c6d7b19e60f4b (diff) | |
download | vim-polyglot-0a7c62b3b22a75f91245a718c1409e4216ae61c8.tar.gz vim-polyglot-0a7c62b3b22a75f91245a718c1409e4216ae61c8.zip |
Remove rego syntax, fixes #486
Diffstat (limited to 'autoload/csv.vim')
-rw-r--r-- | autoload/csv.vim | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/autoload/csv.vim b/autoload/csv.vim index 5926c59a..e05d2e13 100644 --- a/autoload/csv.vim +++ b/autoload/csv.vim @@ -762,6 +762,10 @@ fu! csv#CalculateColumnWidth(row, silent) "{{{3 " does not work with fixed width columns " row for the row for which to calculate the width let b:col_width=[] + if has( 'vartabs' ) && b:delimiter == "\t" + let vts_save=&vts + set vts= + endif try if exists("b:csv_headerline") if line('.') < b:csv_headerline @@ -780,6 +784,9 @@ fu! csv#CalculateColumnWidth(row, silent) "{{{3 " delete buffer content in variable b:csv_list, " this was only necessary for calculating the max width unlet! b:csv_list s:columnize_count s:decimal_column + if has( 'vartabs' ) && b:delimiter == "\t" + let &vts=vts_save + endif endfu fu! csv#Columnize(field) "{{{3 " Internal function, not called from external, |