Always ask for confirmation when pasting text with control codes in it

This commit is contained in:
Kovid Goyal
2023-10-20 13:02:28 +05:30
parent 56963c693e
commit defa2e29ac
7 changed files with 32 additions and 19 deletions

View File

@@ -590,7 +590,6 @@ class TestDataTypes(BaseTest):
self.assertNotIn(b'\x1b[201~', q)
self.assertNotIn('\x9b201~'.encode('utf-8'), q)
self.assertIn(b'ab', q)
self.assertNotIn(b'\x03', sanitize_for_bracketed_paste(b'hi\x03world', True))
def test_expand_ansi_c_escapes(self):
for src, expected in {