mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-07 18:21:16 -03:00
@@ -260,6 +260,12 @@ int fish_wcwidth(wchar_t wc) {
|
||||
// or standalone with a 1 width. Since that's literally not expressible with wcwidth(),
|
||||
// we take the position that the typical way for them to show up is composed.
|
||||
if (wc >= L'\u1160' && wc <= L'\u11FF') return 0;
|
||||
|
||||
// Check for Emoji_Modifier property. Only the Fitzpatrick modifiers have this, in range
|
||||
// 1F3FB..1F3FF. This is a hack because such an emoji appearing on its own would be drawn as
|
||||
// width 2, but that's unlikely to be useful. See #8275.
|
||||
if (wc >= 0x1F3FB && wc <= 0x1F3FF) return 0;
|
||||
|
||||
int width = widechar_wcwidth(wc);
|
||||
|
||||
switch (width) {
|
||||
|
||||
Reference in New Issue
Block a user