Show More
@@ -541,7 +541,7 b' class curseschunkselector(object):' | |||||
541 | # keeps track of the number of lines in the pad |
|
541 | # keeps track of the number of lines in the pad | |
542 | self.numpadlines = None |
|
542 | self.numpadlines = None | |
543 |
|
543 | |||
544 |
self.numstatuslines = |
|
544 | self.numstatuslines = 1 | |
545 |
|
545 | |||
546 | # keep a running count of the number of lines printed to the pad |
|
546 | # keep a running count of the number of lines printed to the pad | |
547 | # (used for determining when the selected item begins/ends) |
|
547 | # (used for determining when the selected item begins/ends) | |
@@ -955,6 +955,9 b' class curseschunkselector(object):' | |||||
955 | "(space/A) toggle hunk/all; (e)dit hunk;"), |
|
955 | "(space/A) toggle hunk/all; (e)dit hunk;"), | |
956 | _(" (f)old/unfold; (c)onfirm applied; (q)uit; (?) help " |
|
956 | _(" (f)old/unfold; (c)onfirm applied; (q)uit; (?) help " | |
957 | "| [X]=hunk applied **=folded, toggle [a]mend mode")] |
|
957 | "| [X]=hunk applied **=folded, toggle [a]mend mode")] | |
|
958 | if len(lines) != self.numstatuslines: | |||
|
959 | self.numstatuslines = len(lines) | |||
|
960 | self.statuswin.resize(self.numstatuslines, self.xscreensize) | |||
958 | return [util.ellipsis(l, self.xscreensize - 1) for l in lines] |
|
961 | return [util.ellipsis(l, self.xscreensize - 1) for l in lines] | |
959 |
|
962 | |||
960 | def updatescreen(self): |
|
963 | def updatescreen(self): | |
@@ -979,7 +982,7 b' class curseschunkselector(object):' | |||||
979 | self.updatescroll() |
|
982 | self.updatescroll() | |
980 | self.chunkpad.refresh(self.firstlineofpadtoprint, 0, |
|
983 | self.chunkpad.refresh(self.firstlineofpadtoprint, 0, | |
981 | self.numstatuslines, 0, |
|
984 | self.numstatuslines, 0, | |
982 |
self.yscreensize |
|
985 | self.yscreensize - self.numstatuslines, | |
983 | self.xscreensize) |
|
986 | self.xscreensize) | |
984 | except curses.error: |
|
987 | except curses.error: | |
985 | pass |
|
988 | pass |
General Comments 0
You need to be logged in to leave comments.
Login now