Patchwork D6130: crecord: redraw the screen on ctrl-L

login
register
mail settings
Submitter phabricator
Date March 20, 2019, 6:08 p.m.
Message ID <95277cfbfc1d4533c7eda2c1919f9f31@localhost.localdomain>
Download mbox | patch
Permalink /patch/39345/
State Not Applicable
Headers show

Comments

phabricator - March 20, 2019, 6:08 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGfa3b0ca9d74f: crecord: redraw the screen on ctrl-L (authored by spectral, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6130?vs=14489&id=14572

REVISION DETAIL
  https://phab.mercurial-scm.org/D6130

AFFECTED FILES
  mercurial/crecord.py

CHANGE DETAILS




To: spectral, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/crecord.py b/mercurial/crecord.py
--- a/mercurial/crecord.py
+++ b/mercurial/crecord.py
@@ -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):
         """