Show More
@@ -1612,8 +1612,12 b' are you sure you want to review/edit and' | |||||
1612 |
|
1612 | |||
1613 | # add 1 so to account for last line text reaching end of line |
|
1613 | # add 1 so to account for last line text reaching end of line | |
1614 | self.numpadlines = self.getnumlinesdisplayed(ignorefolding=True) + 1 |
|
1614 | self.numpadlines = self.getnumlinesdisplayed(ignorefolding=True) + 1 | |
1615 | self.chunkpad = curses.newpad(self.numpadlines, self.xscreensize) |
|
|||
1616 |
|
1615 | |||
|
1616 | try: | |||
|
1617 | self.chunkpad = curses.newpad(self.numpadlines, self.xscreensize) | |||
|
1618 | except curses.error: | |||
|
1619 | self.initerr = _('this diff is too large to be displayed') | |||
|
1620 | return | |||
1617 | # initialize selecteitemendline (initial start-line is 0) |
|
1621 | # initialize selecteitemendline (initial start-line is 0) | |
1618 | self.selecteditemendline = self.getnumlinesdisplayed( |
|
1622 | self.selecteditemendline = self.getnumlinesdisplayed( | |
1619 | self.currentselecteditem, recursechildren=False) |
|
1623 | self.currentselecteditem, recursechildren=False) |
General Comments 0
You need to be logged in to leave comments.
Login now