jquast / wcwidth

Python library that measures the width of unicode strings rendered to a terminal
Other
393 stars 58 forks source link

Fix KeyError in wcwidth-browser.py for 'c'ombining #106

Closed jquast closed 9 months ago

jquast commented 9 months ago

Resolve KeyError when launching wcwidth-browser.py with default unicode_version of 'auto', then pressing 'c' (for combining characters)::

  File "/Users/jq/Code/wcwidth/bin/wcwidth-browser.py", line 120, in __init__
    for (begin, end) in ZERO_WIDTH[unicode_version]:
                        ~~~~~~~~~~^^^^^^^^^^^^^^^^^
KeyError: 'auto'