py3: handle keypresses in chistedit stable
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 31 Oct 2019 14:46:17 -0700
branchstable
changeset 43369 8aa54c5a2577
parent 43368 d8215ff082da
child 43370 7f56b0cbd245
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
hgext/histedit.py
--- 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