Should fix a crash on resize

parent bb92c63a
......@@ -28,7 +28,10 @@ def get_next_byte(s):
"""
Read the next byte of the utf-8 char
"""
c = s.getkey()
try:
c = s.getkey()
except:
return "KEY_RESIZE"
if len(c) > 4:
return (None, c)
return (ord(c), c)
......
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