# HG changeset patch # User Matti Hamalainen # Date 1529402838 -10800 # Node ID 96871ca322705c08b56cc4e7037e9f1a6d8fa786 # Parent a0e185f104541858a0b049e1fb67c4d113930a9a crecord: re-center display in interactive curses commit on pageup/down A long-standing issue in the crecord (interactive curses commit interface) is that using PageUp/Down to move along longer-than current screen size chunks would "lose" the cursor and not properly re-center. There has been self.recenterdisplayedarea() to do that, but it has not been in use for some reason. Add calls to the appropriate uparrowshiftevent() and downarrowshiftevent() methods to fix this. diff -r a0e185f10454 -r 96871ca32270 mercurial/crecord.py --- a/mercurial/crecord.py Fri Feb 02 14:21:04 2018 -0800 +++ b/mercurial/crecord.py Tue Jun 19 13:07:18 2018 +0300 @@ -671,6 +671,7 @@ nextitem = currentitem self.currentselecteditem = nextitem + self.recenterdisplayedarea() def downarrowevent(self): """ @@ -710,6 +711,7 @@ nextitem = currentitem self.currentselecteditem = nextitem + self.recenterdisplayedarea() def rightarrowevent(self): """