mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-23 16:58:09 +02:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user