changeset 41992:fa3b0ca9d74f

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
author Kyle Lippincott <spectral@google.com>
date Wed, 13 Mar 2019 18:39:45 -0700
parents 3f467db023a2
children cde5827d09a7
files mercurial/crecord.py
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/crecord.py	Wed Mar 13 18:39:36 2019 -0700
+++ b/mercurial/crecord.py	Wed Mar 13 18:39:45 2019 -0700
@@ -1730,8 +1730,11 @@
             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):
         """