We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07aa4bc commit 41d2865Copy full SHA for 41d2865
Lib/_pyrepl/utils.py
@@ -64,9 +64,9 @@ def str_width(c: str) -> int:
64
if ord(c) < 128:
65
return 1
66
# gh-139246 for zero-width joiner and combining characters
67
- category = unicodedata.category(c)
68
if unicodedata.combining(c):
69
return 0
+ category = unicodedata.category(c)
70
if category == "Cf" and c != "\u00ad":
71
72
if "\u2028" <= c <= "\u2029":
0 commit comments