Show More
@@ -640,7 +640,7 b' class Pdb(OldPdb):' | |||
|
640 | 640 | """ |
|
641 | 641 | self.lastcmd = 'list' |
|
642 | 642 | last = None |
|
643 | if arg: | |
|
643 | if arg and arg != ".": | |
|
644 | 644 | try: |
|
645 | 645 | x = eval(arg, {}, {}) |
|
646 | 646 | if type(x) == type(()): |
@@ -655,7 +655,7 b' class Pdb(OldPdb):' | |||
|
655 | 655 | except: |
|
656 | 656 | print('*** Error in argument:', repr(arg), file=self.stdout) |
|
657 | 657 | return |
|
658 | elif self.lineno is None: | |
|
658 | elif self.lineno is None or arg == ".": | |
|
659 | 659 | first = max(1, self.curframe.f_lineno - 5) |
|
660 | 660 | else: |
|
661 | 661 | first = self.lineno + 1 |
General Comments 0
You need to be logged in to leave comments.
Login now