mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
81f9f51bcb
This pulls in widechar_width.h from commit 7e9dfdaf05059b3f. The big change here is that some characters which were previously marked as widened in 9 are now marked as unconditionally narrow; this includes some randoms like hot pepper (U+1F336) but more importantly all of the regional indicators, which affects how flags are rendered. If you put two regional indicators together, you get a flag emoji. It's unclear what the width of this flag emoji should be; Terminal and iTerm2 renders it as width 1, while kitty renders it as width 2. This is unaffected by fish_emoji_width because the flag does not have an assigned codepoint, it is a pair of codepoints. The regional indicators are marked as "neutral" in EastAsianWidth.txt which means they conceptually have width 1. So two of them have width 2. So now we assume that flags are rendered as width 2. This fixes #7237, for terminals that render flags as width 2 (but not 1, unfortunately, which includes iTerm2 and Terminal.app). |
||
---|---|---|
.. | ||
LICENSE | ||
widechar_width.h |