diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-09-14 15:19:50 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-09-14 15:20:07 -0700 |
| commit | 626b6cab7988e26766ba64178dd67e4093494552 (patch) | |
| tree | 47a12a5ac0364661335e53c045fd1a26b4a6fdf9 /string2.lua | |
| parent | 3e2844ef62d1b1fd099a790a0927e0768a2a846b (diff) | |
Updated compiler to produce cool string output.
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) |
