From 8bf32f65a530cb9452d41a873fc2915e3749077a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20BERTHO?= Date: Tue, 24 Oct 2017 18:41:32 +0200 Subject: [PATCH] Fixed last line search MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: RĂ©mi BERTHO --- SSnR.py | 1 + 1 file changed, 1 insertion(+) diff --git a/SSnR.py b/SSnR.py index b2e1a04..90a025e 100755 --- a/SSnR.py +++ b/SSnR.py @@ -236,6 +236,7 @@ def find_line(begin_pos, end_pos, new_lines): return num_line, begin_pos - old_pos_line + 1, end_pos - old_pos_line num_line += 1 old_pos_line = pos_line + return num_line, begin_pos - old_pos_line + 1, end_pos - old_pos_line if __name__ == '__main__':