From 14dc82fc4e6c0c08078f97a24a6c1639c1cc5113 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Tue, 14 Apr 2020 13:17:26 +0200 Subject: Update --- autoload/csv.vim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'autoload/csv.vim') 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!") -- cgit v1.2.3