aboutsummaryrefslogtreecommitdiff
path: root/spawn.h
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2022-12-16 15:56:43 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-01-01 09:29:27 +0000
commit6259d59b4d82b0e8b7705759e04262130a3426c8 (patch)
treeaf846dd51bcc70bd7d22c4188a91aff2464f6784 /spawn.h
parentthemes: comment out selection-{foreground,background} (diff)
config: change default grapheme-width-method from wcswidth to double-width
The old default, wcswidth, simply calls wcswidth() on the grapheme cluster. This was supposedly the implementation with the highest application compatibility. Except we never even tried to measure it. It was just assumed. A lot of modern applications have better implementations. Let’s try to push support for better emoji support by changing our default method from wcswith to double-width. While far from correct (it’s not based on the Unicode tables), the ‘double-width’ method produces accurate results anyway. double-width is like wcswidth(), in that it adds together the individual wcwidths of all codepoints in the grapheme cluster. But, it limits the maximum width to 2.
Diffstat (limited to 'spawn.h')
0 files changed, 0 insertions, 0 deletions