From e18409d73faf314fb4edbf3cc84de1ce4cf571b3 Mon Sep 17 00:00:00 2001 From: Geoff Leyland Date: Mon, 26 May 2014 17:27:50 +1200 Subject: [PATCH] csv.lua: rename find's second argument 'init' to match the Lua Reference Manual --- lua/csv.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/csv.lua b/lua/csv.lua index c1b3a01..192e9d2 100644 --- a/lua/csv.lua +++ b/lua/csv.lua @@ -179,10 +179,10 @@ local function separated_values_iterator(file, parameters) -- Find something in the buffer, extending it if necessary - local function find(pattern, offset) + local function find(pattern, init) local first, last, capture while true do - first, last, capture = buffer:find(pattern, anchor_pos + offset - 1) + first, last, capture = buffer:find(pattern, anchor_pos + init - 1) -- if we found nothing, or the last character is at the end of the -- buffer (and the match could potentially be longer) then read some -- more.