Show More
@@ -1263,7 +1263,6 b' class curseschunkselector(object):' | |||||
1263 | self.statuswin.resize(self.numstatuslines, self.xscreensize) |
|
1263 | self.statuswin.resize(self.numstatuslines, self.xscreensize) | |
1264 | self.numpadlines = self.getnumlinesdisplayed(ignorefolding=True) + 1 |
|
1264 | self.numpadlines = self.getnumlinesdisplayed(ignorefolding=True) + 1 | |
1265 | self.chunkpad = curses.newpad(self.numpadlines, self.xscreensize) |
|
1265 | self.chunkpad = curses.newpad(self.numpadlines, self.xscreensize) | |
1266 | # todo: try to resize commit message window if possible |
|
|||
1267 | except curses.error: |
|
1266 | except curses.error: | |
1268 | pass |
|
1267 | pass | |
1269 |
|
1268 | |||
@@ -1589,7 +1588,8 b' are you sure you want to review/edit and' | |||||
1589 | method to be wrapped by curses.wrapper() for selecting chunks. |
|
1588 | method to be wrapped by curses.wrapper() for selecting chunks. | |
1590 | """ |
|
1589 | """ | |
1591 |
|
1590 | |||
1592 |
signal.signal(signal.SIGWINCH, |
|
1591 | origsigwinchhandler = signal.signal(signal.SIGWINCH, | |
|
1592 | self.sigwinchhandler) | |||
1593 | self.stdscr = stdscr |
|
1593 | self.stdscr = stdscr | |
1594 | # error during initialization, cannot be printed in the curses |
|
1594 | # error during initialization, cannot be printed in the curses | |
1595 | # interface, it should be printed by the calling code |
|
1595 | # interface, it should be printed by the calling code | |
@@ -1640,3 +1640,4 b' are you sure you want to review/edit and' | |||||
1640 | keypressed = "foobar" |
|
1640 | keypressed = "foobar" | |
1641 | if self.handlekeypressed(keypressed): |
|
1641 | if self.handlekeypressed(keypressed): | |
1642 | break |
|
1642 | break | |
|
1643 | signal.signal(signal.SIGWINCH, origsigwinchhandler) |
General Comments 0
You need to be logged in to leave comments.
Login now