Fix crash when rendering a cell with a large number of combining chars

Caused by kitty now supporting larger number of combining chars per
cell. Fixes #8318
This commit is contained in:
Kovid Goyal
2025-02-12 08:23:46 +05:30
parent fb54f1527f
commit e7a40300d1
2 changed files with 7 additions and 4 deletions

View File

@@ -692,6 +692,9 @@ class TestScreen(BaseTest):
t('\u25b6', 1, '\ufe0f', 2, '\ufe0e', 2)
# wide + VS15 + VS16
t('\U0001f610', 2, '\ufe0e', 1, '\ufe0f', 1)
# large numbers of combining chars
s.reset()
s.draw("\N{HEAVY EXCLAMATION MARK SYMBOL}" + 4500 * "\N{VARIATION SELECTOR-16}")
def test_writing_with_cursor_on_trailer_of_wide_character(self):
s = self.create_screen()