Skip to content

Commit f63aa3e

Browse files
compact more kinds of characters in paste events
1 parent 5a3cd36 commit f63aa3e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

bpython/curtsiesfrontend/repl.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -944,6 +944,10 @@ def compress_paste_event(paste_event):
944944
event = paste_event.events[0]
945945
if len(event) > 1:# basically "is there a special curses names for this key?"
946946
return event
947+
elif ord(event) < 0x20:
948+
return event
949+
elif event == '\x7f':
950+
return event
947951
else:
948952
return None
949953

0 commit comments

Comments
 (0)