From 626b6cab7988e26766ba64178dd67e4093494552 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Fri, 14 Sep 2018 15:19:50 -0700 Subject: Updated compiler to produce cool string output. --- string2.lua | 3 --- 1 file changed, 3 deletions(-) (limited to 'string2.lua') 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) -- cgit v1.2.3