diff options
author | Marta Gómez Macías <mgmacias@google.com> | 2024-07-13 10:44:18 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-13 10:44:18 (GMT) |
commit | e745996b2d24b9234f896bdc2f3320e49287dcd0 (patch) | |
tree | 4f387f8e41f5ec340692620bbbcec4aa83ba7bf7 /Lib/_pyrepl | |
parent | 18015451d0e3f4d155d56f70faf9b76ce5b7ad79 (diff) | |
download | cpython-e745996b2d24b9234f896bdc2f3320e49287dcd0.zip cpython-e745996b2d24b9234f896bdc2f3320e49287dcd0.tar.gz cpython-e745996b2d24b9234f896bdc2f3320e49287dcd0.tar.bz2 |
gh-121609: Fix pasting of characters containing unicode character joiner (#121667)
Diffstat (limited to 'Lib/_pyrepl')
-rw-r--r-- | Lib/_pyrepl/reader.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/_pyrepl/reader.py b/Lib/_pyrepl/reader.py index 63ae661..1622d30 100644 --- a/Lib/_pyrepl/reader.py +++ b/Lib/_pyrepl/reader.py @@ -58,7 +58,6 @@ def disp_str(buffer: str) -> tuple[str, list[int]]: elif unicodedata.category(c).startswith("C"): c = r"\u%04x" % ord(c) s.append(c) - b.append(str_width(c)) b.extend([0] * (len(c) - 1)) else: s.append(c) |