# HG changeset patch # User Matti Hamalainen # Date 2018-06-19 10:07:18 # 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 --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -671,6 +671,7 @@ class curseschunkselector(object): nextitem = currentitem self.currentselecteditem = nextitem + self.recenterdisplayedarea() def downarrowevent(self): """ @@ -710,6 +711,7 @@ class curseschunkselector(object): nextitem = currentitem self.currentselecteditem = nextitem + self.recenterdisplayedarea() def rightarrowevent(self): """