You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unsetting $fish_emoji_width doesn't clear the cached width #8274
It looks like I can set fish_emoji_width to 0 and this will cause fish to fall back to using the cached emoji guess (assuming it already guessed at emoji prior to setting the variable). So the workaround here looks like set fish_emoji_width 1; set -e fish_emoji_width in order to clear the cached width and then clear the variable.
$fish_emoji_width does not specify how wide all emoji are. It only tells us how to treat characters (mostly emoji) that were widened in unicode 9. A width of 2 is the post unicode 9 setting, 1 before.
It's only a compatibility measure for outdated terminals/libcs, and should after detection rarely need to be set. If your libc says one of these is 2 wide, then you most likely also have a terminal new enough that (even if it has its own width table) it should use 2.
This isn't a matter of preference, 2 is the correct value. (could the variable have been named better? Yeah)
Activity
faho commentedon Sep 7, 2021
Yeah, sure. For those reading along at home:
$fish_emoji_width does not specify how wide all emoji are. It only tells us how to treat characters (mostly emoji) that were widened in unicode 9. A width of 2 is the post unicode 9 setting, 1 before.
It's only a compatibility measure for outdated terminals/libcs, and should after detection rarely need to be set. If your libc says one of these is 2 wide, then you most likely also have a terminal new enough that (even if it has its own width table) it should use 2.
This isn't a matter of preference, 2 is the correct value. (could the variable have been named better? Yeah)
CHANGELOG updates for 3.4.0