optimize tweak

This commit is contained in:
Will McGugan 2021-12-14 21:43:40 +00:00
parent 5c28249100
commit 6957cebe72
1 changed files with 2 additions and 3 deletions

View File

@ -1078,9 +1078,8 @@ class Text(JupyterMixin):
break
start_line_no = (lower_bound + upper_bound) // 2
lower_bound = 0
upper_bound = line_count
end_line_no = start_line_no
end_line_no = lower_bound = start_line_no
upper_bound = line_count
while True:
line_start, line_end = line_ranges[end_line_no]