diff options
Diffstat (limited to 'autoload/csv.vim')
-rw-r--r-- | autoload/csv.vim | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/autoload/csv.vim b/autoload/csv.vim index 5d63a24d..5926c59a 100644 --- a/autoload/csv.vim +++ b/autoload/csv.vim @@ -69,6 +69,10 @@ fu! csv#Init(start, end, ...) "{{{3 else let b:csv_cmt = split(g:csv_comment, '%s') endif + " Make sure it is a list with 2 chars + if b:csv_cmt == [] + let b:csv_cmt = ["", ""] + endif if empty(b:delimiter) && !exists("b:csv_fixed_width") call csv#Warn("No delimiter found. See :h csv-delimiter to set it manually!") |