From 6d5a2b8ecd6653c143ba8d0bc57fdde006837eef Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 12 Nov 2024 09:16:45 +0530 Subject: [PATCH] Add a test that exercises the text_cache in Line code path --- kitty_tests/screen.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty_tests/screen.py b/kitty_tests/screen.py index 847a3c4fd..21e2284bf 100644 --- a/kitty_tests/screen.py +++ b/kitty_tests/screen.py @@ -691,8 +691,8 @@ class TestScreen(BaseTest): def test_wrapping_serialization(self): from kitty.window import as_text s = self.create_screen(cols=2, lines=2, scrollback=2, options={'scrollback_pager_history_size': 128}) - s.draw('aabbccddeeff') - self.ae(as_text(s, add_history=True), 'aabbccddeeff') + s.draw('äabbccddeefü') + self.ae(as_text(s, add_history=True), 'äabbccddeefü') self.assertNotIn('\n', as_text(s, add_history=True, as_ansi=True)) s = self.create_screen(cols=2, lines=2, scrollback=2, options={'scrollback_pager_history_size': 128})