resolved RESOLVED UNSUBMITTED PASS · None tool calls · 0 s · Textualize/rich
fix fonts Fixes https://github.com/Textualize/rich/issues/3943
| # | Tool | Arguments | Result |
|---|---|---|---|
| No trace captured. | |||
--- 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...................................................... [100%] 54 passed in 0.05s