Show More
@@ -352,8 +352,8 b' class Pdb(OldPdb):' | |||||
352 |
|
352 | |||
353 | start = lineno - 1 - context//2 |
|
353 | start = lineno - 1 - context//2 | |
354 | lines = ulinecache.getlines(filename) |
|
354 | lines = ulinecache.getlines(filename) | |
355 | start = max(start, 0) |
|
|||
356 | start = min(start, len(lines) - context) |
|
355 | start = min(start, len(lines) - context) | |
|
356 | start = max(start, 0) | |||
357 | lines = lines[start : start + context] |
|
357 | lines = lines[start : start + context] | |
358 |
|
358 | |||
359 | for i,line in enumerate(lines): |
|
359 | for i,line in enumerate(lines): |
General Comments 0
You need to be logged in to leave comments.
Login now