also, that

parent 6b92b3cf
......@@ -159,7 +159,7 @@ class Gui(object):
doupdate()
char=read_char(stdscr)
try: # if this is not a valide utf-8 char, discard it
char.encode('utf-8')
char.decode('utf-8')
except UnicodeDecodeError:
continue
# search for keyboard shortcut
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment