Make wide-characters display correctly in other terminals.

- Was only working kitty. Now tested working in xterm,
  gnome-terminal and alacritty.
- Use the standard zero width space not some other
  character with zero width.
This commit is contained in:
Andrew Hamilton 2021-08-06 00:46:02 +10:00
parent c91beda9b4
commit 4ca4d3a2ba

View file

@ -131,7 +131,7 @@ def _join_lists(lists):
return list(itertools.chain.from_iterable(lists))
_ZERO_WIDTH_SPACE = chr(0x00ad)
_ZERO_WIDTH_SPACE = "\u200b"
def _pad_wide_chars(str_):