From 54ae0cfbb8d43ccc8f56bf57019b9a22c252eefa Mon Sep 17 00:00:00 2001 From: Will McGugan Date: Sun, 1 Feb 2026 16:12:26 +0000 Subject: [PATCH] simplify --- CHANGELOG.md | 4 ++-- rich/cells.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b63ad7d1..0b093843 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,8 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed -- Fixed solo ZWJ crash -- Fixed control codes reporting width of 1 +- Fixed solo ZWJ crash https://github.com/Textualize/rich/pull/3953 +- Fixed control codes reporting width of 1 https://github.com/Textualize/rich/pull/3953 ## [14.3.1] - 2026-01-24 diff --git a/rich/cells.py b/rich/cells.py index 0aa09d56..31165957 100644 --- a/rich/cells.py +++ b/rich/cells.py @@ -146,7 +146,7 @@ def _cell_len(text: str, unicode_version: str) -> int: if character in SPECIAL: if character == "\u200d": index += 1 - elif character == "\ufe0f" and last_measured_character: + elif last_measured_character: total_width += last_measured_character in cell_table.narrow_to_wide last_measured_character = None else: