Fix a tb on escape and no key after it.

This commit is contained in:
Florent Le Coz 2012-12-16 18:15:39 +01:00
parent 2ce849968f
commit 88346b965e

View file

@ -59,9 +59,9 @@ def get_char_list_old(s):
continue continue
if first == 27: if first == 27:
second = get_char_list_old(s) second = get_char_list_old(s)
if second is None: # if escape was pressed, a second char if not second: # if escape was pressed, a second char
# has to be read. But it timed out. # has to be read. But it timed out.
return None return []
res = 'M-%s' % (second[0],) res = 'M-%s' % (second[0],)
ret_list.append(res) ret_list.append(res)
(first, char) = get_next_byte(s) (first, char) = get_next_byte(s)