[3.13] gh-121609: Fix pasting of characters containing unicode character joiner (GH-121667) (#121733)

Co-authored-by: Marta Gómez Macías <mgmacias@google.com>
This commit is contained in:
Miss Islington (bot) 2024-07-14 11:02:46 +02:00 committed by GitHub
parent e8594aadd5
commit e28f863bd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View file

@ -89,6 +89,12 @@ class TestReader(TestCase):
reader.setpos_from_xy(0, 0)
self.assertEqual(reader.pos, 0)
def test_control_characters(self):
code = 'flag = "🏳️‍🌈"'
events = code_to_events(code)
reader, _ = handle_all_events(events)
self.assert_screen_equals(reader, 'flag = "🏳️\\u200d🌈"')
def test_setpos_from_xy_multiple_lines(self):
# fmt: off
code = (