From 4d48bf359df98512a2a741d48ea222d055b733c0 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Thu, 13 Sep 2018 16:01:57 -0700 Subject: Improvements to indented text parsing and error reporting. --- string2.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'string2.lua') diff --git a/string2.lua b/string2.lua index 387fd65..80883d9 100644 --- a/string2.lua +++ b/string2.lua @@ -71,7 +71,7 @@ local string2 = { return end for i, line, start, stop in isplit(self, '\n') do - if stop >= pos then + if stop + 1 >= pos then return line, i, (pos - start + 1) end end -- cgit v1.2.3