# HG changeset patch # User Kyle Lippincott # Date 2019-03-14 01:39:45 # Node ID fa3b0ca9d74ff81df2578e4e336ec012aeac243a # Parent 3f467db023a2479a1e1874b1c83ee8f5caeb50f9 crecord: redraw the screen on ctrl-L This is the normal use of Ctrl-L, so I think this is going to be what most people expect it to do. We're keeping the adjustment of what line we're scrolled to as well. I believe both to be necessary to handle otherwise inescapable situations when we've got screen corruption or edge-cases during window resizing. Differential Revision: https://phab.mercurial-scm.org/D6130 diff --git a/mercurial/crecord.py b/mercurial/crecord.py --- a/mercurial/crecord.py +++ b/mercurial/crecord.py @@ -1730,8 +1730,11 @@ are you sure you want to review/edit and self.stdscr.clear() self.stdscr.refresh() elif curses.unctrl(keypressed) in ["^L"]: - # scroll the current line to the top of the screen + # scroll the current line to the top of the screen, and redraw + # everything self.scrolllines(self.selecteditemstartline) + self.stdscr.clear() + self.stdscr.refresh() def main(self, stdscr): """