diff options
Diffstat (limited to 'string2.lua')
| -rw-r--r-- | string2.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/string2.lua b/string2.lua index 80883d9..fe33bb9 100644 --- a/string2.lua +++ b/string2.lua @@ -67,9 +67,6 @@ local string2 = { end, line_at = function(self, pos) assert(type(pos) == 'number', "Invalid string position") - if pos < 1 or pos > #self then - return - end for i, line, start, stop in isplit(self, '\n') do if stop + 1 >= pos then return line, i, (pos - start + 1) |
