Files
fish-shell/doc_src
ridiculousfish 5282d3e711 Add fish_emoji_width variable to control computed emoji width
This is part of an effort to improve fish's Unicode handling. This commit
attempts to grapple with the fact that, certain characters (principally
emoji) were considered to have a wcwidth of 1 in Unicode 8, but a width of
2 in Unicode 9.

The system wcwidth() here cannot be trusted; terminal emulators do not
respect it. iTerm2 even allows this to be set in preferences.

This commit introduces a new function is_width_2_in_Uni9_but_1_in_Uni8() to
detect characters of version-ambiguous width. For these characters, it
returns a width guessed based on the value of TERM_PROGRAM and
TERM_VERSION, defaulting to 1. This value can be overridden by setting the
value of a new variable fish_emoji_width (presumably either to 1 or 2).

Fixes #4539, #2652.
2018-02-25 23:38:10 -08:00
..
2017-11-03 14:09:22 +01:00
2016-10-30 21:25:21 -07:00
2017-04-04 14:59:43 +02:00
2017-07-11 22:50:55 -07:00
2017-07-05 13:25:18 -07:00
2017-07-05 13:25:18 -07:00
2014-09-07 17:35:19 +01:00
2014-09-03 14:43:27 +01:00
2017-07-18 23:37:14 +02:00
2015-09-11 11:33:04 +02:00
2017-04-29 19:20:03 +08:00
2016-04-23 12:26:57 -07:00
2017-07-11 22:50:55 -07:00
2015-03-18 16:22:29 -04:00
2014-09-29 13:39:35 -07:00
2018-01-07 15:00:44 +01:00
2016-07-16 20:22:41 -07:00
2017-07-12 22:38:32 -07:00
2016-04-26 15:21:15 +02:00
2017-11-06 18:46:57 +01:00
2018-02-19 20:21:02 +01:00
2017-04-30 20:21:40 -07:00
2017-11-06 18:48:16 +01:00
2014-09-03 14:43:27 +01:00
2017-07-05 13:25:18 -07:00
2017-07-05 13:25:18 -07:00
2017-07-05 13:25:18 -07:00
2016-07-16 20:22:41 -07:00
2016-07-16 20:22:41 -07:00
2017-07-05 13:25:18 -07:00
2014-09-03 14:43:25 +01:00
2016-12-24 13:52:49 -08:00
2017-08-09 23:25:00 +08:00
2018-02-23 18:19:19 +01:00
2017-03-14 21:02:02 -07:00
2014-09-29 13:39:35 -07:00
2018-02-07 01:12:30 +01:00
2017-07-13 15:19:02 -07:00
2014-09-03 14:43:27 +01:00
2017-11-16 11:28:32 -08:00