Patchwork D7182: py3: handle keypresses in chistedit

login
register
mail settings
Submitter phabricator
Date Nov. 1, 2019, 4:34 p.m.
Message ID <7b498acbb66d86210e1ca6b8b52640b1@localhost.localdomain>
Download mbox | patch
Permalink /patch/42648/
State Not Applicable
Headers show

Comments

phabricator - Nov. 1, 2019, 4:34 p.m.
martinvonz updated this revision to Diff 17437.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7182?vs=17429&id=17437

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7182/new/

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

AFFECTED FILES
  hgext/histedit.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/histedit.py b/hgext/histedit.py
--- a/hgext/histedit.py
+++ b/hgext/histedit.py
@@ -1603,7 +1603,7 @@ 
                 renderhelp(helpwin, state)
                 curses.doupdate()
                 # done rendering
-                ch = stdscr.getkey()
+                ch = encoding.strtolocal(stdscr.getkey())
         except curses.error:
             pass