Skip to content

Commit a49aa3b

Browse files
strip control sequences that aren't bound
--HG-- branch : scroll-frontend
1 parent e0f0428 commit a49aa3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bpython/scrollfrontend/repl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def process_event(self, e):
294294
self.external_editor()
295295
#TODO add PAD keys hack as in bpython.cli
296296
else:
297-
self.add_normal_character(e)
297+
self.add_normal_character(e if len(e) == 1 else e[-1]) #strip control seq
298298
self.update_completion()
299299

300300
def on_enter(self):

0 commit comments

Comments
 (0)