changeset 43369:8aa54c5a2577 stable

py3: handle keypresses in chistedit Now you can navigate and change the action for a commit. You can also reorder commits, as long as that doesn't result in a conflict (then it crashes). Differential Revision: https://phab.mercurial-scm.org/D7182
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 31 Oct 2019 14:46:17 -0700
parents d8215ff082da
children 7f56b0cbd245
files hgext/histedit.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/histedit.py	Thu Oct 31 14:25:51 2019 -0700
+++ b/hgext/histedit.py	Thu Oct 31 14:46:17 2019 -0700
@@ -1608,7 +1608,7 @@
                 renderhelp(helpwin, state)
                 curses.doupdate()
                 # done rendering
-                ch = stdscr.getkey()
+                ch = encoding.strtolocal(stdscr.getkey())
         except curses.error:
             pass