Skip to content

Commit 65b962c

Browse files
Fixed bug in _cpr_response_prefix_re
1 parent d895c57 commit 65b962c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prompt_toolkit/inputstream.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
_cpr_response_re = re.compile('^' + re.escape('\x1b[') + r'\d+;\d+R$')
1616

1717
# Regex matching anything valid prefix of a CPR response.
18-
_cpr_response_prefix_re = re.compile('^' + re.escape('\x1b[') + r'($|\d)')
18+
_cpr_response_prefix_re = re.compile('^' + re.escape('\x1b[') + r'[\d;R]*$')
1919

2020

2121
class KeyPress(object):

0 commit comments

Comments
 (0)