changeset 45766:91c41ea14598 stable

crecord: render chunkpad on Windows (issue6427) When using Windows wrappers of PDCurses (e.g., windows-curses), the chunkpad does not render when executing `hg commit -i`. This is due to attempting to refresh one too many columns of the pad. Differential Revision: https://phab.mercurial-scm.org/D9267
author Barret Rennie <barret@brennie.ca>
date Sat, 31 Oct 2020 17:42:31 -0400
parents f59c5d9f56b8
children 8711dc13474c
files mercurial/crecord.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/crecord.py	Mon Nov 02 14:26:19 2020 -0500
+++ b/mercurial/crecord.py	Sat Oct 31 17:42:31 2020 -0400
@@ -1250,7 +1250,7 @@
                 self.numstatuslines,
                 0,
                 self.yscreensize - self.numstatuslines,
-                self.xscreensize,
+                self.xscreensize - 1,
             )
         except curses.error:
             pass