changeset 25419:6e62a5b3442d

crecord: fix blue artifact bug coming back from help screen Before this patch, with record's curses interface: - When one pressed the ? key to see the help menu and then leaves the help menu - Then, blue artifacts would remain on the screen This patch forces a screen clear / refresh after coming back from the help menu. Since we don't have UI test for crecord I checked on my machine that the bug does not reproduce.
author Laurent Charignon <lcharignon@fb.com>
date Wed, 03 Jun 2015 14:22:21 -0700
parents c0995cd8ff6f
children c2ec81891502
files mercurial/crecord.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/crecord.py	Wed Jun 03 14:21:15 2015 -0400
+++ b/mercurial/crecord.py	Wed Jun 03 14:22:21 2015 -0700
@@ -1554,6 +1554,8 @@
             self.togglefolded(foldparent=True)
         elif keypressed in ["?"]:
             self.helpwindow()
+            self.stdscr.clear()
+            self.stdscr.refresh()
 
     def main(self, stdscr):
         """