← oracle_full

rich_3944

resolved RESOLVED UNSUBMITTED PASS · None tool calls · 0 s · Textualize/rich

Task input

fix fonts

Fixes https://github.com/Textualize/rich/issues/3943

Tool calls (0)

#ToolArgumentsResult
No trace captured.

Patch

--- a/rich/cells.py
+++ b/rich/cells.py
@@ -57,7 +57,7 @@ def get_character_cell_size(character: str, unicode_version: str = "auto") -> in
     codepoint = ord(character)
     table = load_cell_table(unicode_version).widths
     if codepoint > table[-1][1]:
-        return 0
+        return 1
     lower_bound = 0
     upper_bound = len(table) - 1
     index = (lower_bound + upper_bound) // 2

Test output

show
......................................................                   [100%]
54 passed in 0.05s