Fixed last line search
Signed-off-by: Rémi BERTHO <remi.bertho@dalan.fr>
This commit is contained in:
parent
3dc083242f
commit
8bf32f65a5
1 changed files with 1 additions and 0 deletions
1
SSnR.py
1
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__':
|
||||
|
|
Loading…
Reference in a new issue