Show More
@@ -723,7 +723,7 b' class curseschunkselector(object):' | |||||
723 | self.currentselecteditem = nextitem |
|
723 | self.currentselecteditem = nextitem | |
724 | self.recenterdisplayedarea() |
|
724 | self.recenterdisplayedarea() | |
725 |
|
725 | |||
726 | def nextsametype(self): |
|
726 | def nextsametype(self, test=False): | |
727 | currentitem = self.currentselecteditem |
|
727 | currentitem = self.currentselecteditem | |
728 | sametype = lambda item: isinstance(item, type(currentitem)) |
|
728 | sametype = lambda item: isinstance(item, type(currentitem)) | |
729 | nextitem = currentitem.nextitem() |
|
729 | nextitem = currentitem.nextitem() | |
@@ -739,7 +739,8 b' class curseschunkselector(object):' | |||||
739 | self.togglefolded(parent) |
|
739 | self.togglefolded(parent) | |
740 |
|
740 | |||
741 | self.currentselecteditem = nextitem |
|
741 | self.currentselecteditem = nextitem | |
742 | self.recenterdisplayedarea() |
|
742 | if not test: | |
|
743 | self.recenterdisplayedarea() | |||
743 |
|
744 | |||
744 | def rightarrowevent(self): |
|
745 | def rightarrowevent(self): | |
745 | """ |
|
746 | """ | |
@@ -1753,7 +1754,7 b' are you sure you want to review/edit and' | |||||
1753 | self.toggleapply() |
|
1754 | self.toggleapply() | |
1754 | elif keypressed in ['\n', 'KEY_ENTER']: |
|
1755 | elif keypressed in ['\n', 'KEY_ENTER']: | |
1755 | self.toggleapply() |
|
1756 | self.toggleapply() | |
1756 | self.nextsametype() |
|
1757 | self.nextsametype(test=test) | |
1757 | elif keypressed in ['A']: |
|
1758 | elif keypressed in ['A']: | |
1758 | self.toggleall() |
|
1759 | self.toggleall() | |
1759 | elif keypressed in ['e']: |
|
1760 | elif keypressed in ['e']: |
General Comments 0
You need to be logged in to leave comments.
Login now