Skip to content

Commit 646aff8

Browse files
committed
more defensive condition
1 parent c4db67a commit 646aff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rich/cells.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ def split_graphemes(
187187
if character == "\u200d":
188188
# zero width joiner
189189
index += 1
190-
if index != codepoint_count:
190+
if index < codepoint_count:
191191
index += 1
192192
if spans:
193193
start, _end, cell_length = spans[-1]

0 commit comments

Comments
 (0)