aboutsummaryrefslogtreecommitdiff
path: root/string2.lua
diff options
context:
space:
mode:
Diffstat (limited to 'string2.lua')
-rw-r--r--string2.lua2
1 files changed, 1 insertions, 1 deletions
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