Fix incorrect handling of VS16 when it causes char to wrap to next line and is part of a draw command with more characters following it

Needed to initialize full text loop state rather than just segmentation
state on wrap. Fixes #8848
This commit is contained in:
Kovid Goyal
2025-07-26 09:25:01 +05:30
parent 0f67ff37df
commit f61b15b284
3 changed files with 12 additions and 5 deletions

View File

@@ -732,6 +732,10 @@ class TestScreen(BaseTest):
self.ae(s.text_for_selection(), ('a\u00adb',))
def test_variation_selectors(self):
s = self.create_screen(cols=3)
q = '*\ufe0f'
s.draw(q*(s.columns+1))
self.ae(str(s.line(0)), q*(s.columns//2))
s = self.create_screen(cols=8)
def widths(text, *widths):
s.reset()