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