From 378c34bd43eb4c9779ce1f7ff5dea376b34c91c5 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 16:50:17 +0000 Subject: [PATCH 1/2] Initial plan From f07a3fc5f5f4d5bfc0152cca4b103369934cd8b6 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 19 Feb 2026 16:53:24 +0000 Subject: [PATCH 2/2] Add regression tests for VS16 after zero-width chars in split_graphemes Co-authored-by: willmcgugan <554369+willmcgugan@users.noreply.github.com> --- tests/test_cells.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test_cells.py b/tests/test_cells.py index 5aefda524c..c307fa5ac7 100644 --- a/tests/test_cells.py +++ b/tests/test_cells.py @@ -209,6 +209,16 @@ def test_is_single_cell_widths() -> None: [(0, 2, 0)], 0, ), # Two ZWJs should have zero width + ( + "\x1b\ufe0f", + [(0, 2, 0)], + 0, + ), # VS16 after escape (zero-width, doesn't set last_measured_character) should have zero width + ( + "\u200d\ufe0f", + [(0, 2, 0)], + 0, + ), # VS16 after ZWJ (zero-width, doesn't set last_measured_character) should have zero width ], ) def test_split_graphemes(