termptydbl: unbreak mutt/nethack/my shell prompt…
The following ranges are not double-width: 2500-257F Box Drawing 2580-259F Block Elements 25A0-25FF Geometric Shapes E000- F8FF Private Use Area
This commit is contained in:
parent
f0191d0ffc
commit
d197d2207e
|
@ -19,10 +19,10 @@ _termpty_is_dblwidth_slow_get(const Termpty *ty, int g)
|
|||
// [ 0x0C00 -> 0x0C7F]
|
||||
// [ 0x1DC0 -> 0x1DFF]
|
||||
// [ 0x1E00 -> 0x1EFF]
|
||||
// [ 0x2000 -> 0x209F] !!! handle csrefully **
|
||||
// [ 0x2000 -> 0x209F] !!! handle carefully **
|
||||
// [ 0x20D0 -> 0x214F]
|
||||
// [ 0x2190 -> 0x23FF]
|
||||
// [ 0x2460 -> 0x25FF]
|
||||
// [ 0x2460 -> 0x24FF]
|
||||
// [ 0x2600 -> 0x27EF]
|
||||
// [ 0x2900 -> 0x29FF]
|
||||
// [ 0x2B00 -> 0x2BFF]
|
||||
|
@ -30,7 +30,6 @@ _termpty_is_dblwidth_slow_get(const Termpty *ty, int g)
|
|||
// [ 0x2E00 -> 0x2E7F]
|
||||
// [ 0x3000 -> 0x303F]
|
||||
// [ 0xA490 -> 0xA4CF]
|
||||
// [ 0xE000 -> 0xF8FF]
|
||||
// [ 0xFE00 -> 0xFE0F]
|
||||
// [ 0xFE30 -> 0xFE4F]
|
||||
// [0x1F000 -> 0x1F02F]
|
||||
|
@ -94,7 +93,7 @@ _termpty_is_dblwidth_slow_get(const Termpty *ty, int g)
|
|||
// ((g >= 0x2000) && (g <= 0x209F)) ||
|
||||
((g >= 0x20D0) && (g <= 0x214F)) ||
|
||||
((g >= 0x2190) && (g <= 0x23FF)) ||
|
||||
((g >= 0x2460) && (g <= 0x25FF)) ||
|
||||
((g >= 0x2460) && (g <= 0x24FF)) ||
|
||||
((g >= 0x2600) && (g <= 0x27EF)) ||
|
||||
((g >= 0x2900) && (g <= 0x29FF)) ||
|
||||
((g >= 0x2B00) && (g <= 0x2BFF)) ||
|
||||
|
@ -102,7 +101,6 @@ _termpty_is_dblwidth_slow_get(const Termpty *ty, int g)
|
|||
((g >= 0x2E00) && (g <= 0x2E7F)) ||
|
||||
((g >= 0x3000) && (g <= 0x303F)) ||
|
||||
((g >= 0xA490) && (g <= 0xA4CF)) ||
|
||||
((g >= 0xE000) && (g <= 0xF8FF)) ||
|
||||
((g >= 0xFE00) && (g <= 0xFE0F)) ||
|
||||
((g >= 0xFE30) && (g <= 0xFE4F)) ||
|
||||
((g >= 0x1F000) && (g <= 0x1F02F)) ||
|
||||
|
|
Loading…
Reference in New Issue