Patchwork D7182: py3: handle keypresses in chistedit

login
register
mail settings
Submitter phabricator
Date Oct. 31, 2019, 10:23 p.m.
Message ID <differential-rev-PHID-DREV-vlidjo7eray44v26pnwm-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/42626/
State Superseded
Headers show

Comments

phabricator - Oct. 31, 2019, 10:23 p.m.
martinvonz created this revision.
Herald added a reviewer: durin42.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  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).

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/histedit.py

CHANGE DETAILS




To: martinvonz, durin42, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -217,6 +217,7 @@ 
     copies,
     destutil,
     discovery,
+    encoding,
     error,
     exchange,
     extensions,
@@ -1600,7 +1601,7 @@ 
                 renderhelp(helpwin, state)
                 curses.doupdate()
                 # done rendering
-                ch = stdscr.getkey()
+                ch = encoding.strtolocal(stdscr.getkey())
         except curses.error:
             pass