From b3d3567333addc83ea49ba1a399758a88e5acdde Mon Sep 17 00:00:00 2001 From: Geoff Leyland Date: Tue, 30 Sep 2014 12:22:21 +1300 Subject: [PATCH] Don't skip a line if both columns and header are true --- lua/csv.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/csv.lua b/lua/csv.lua index fda4f54..a7ec2fd 100644 --- a/lua/csv.lua +++ b/lua/csv.lua @@ -420,7 +420,7 @@ local function separated_values_iterator(buffer, parameters) if not this_sep or this_sep == "\r" or this_sep == "\n" then if parameters.column_map and not header_read then header_read = parameters.column_map:read_header(fields) - elseif parameters.header and not header then + elseif parameters.header and not header_read then if nonblanks or field_count > 1 then -- ignore blank lines header = fields header_read = true