From d197d2207eb6069f9ebc89fd5356ca0dc5c5c49d Mon Sep 17 00:00:00 2001 From: Boris Faure Date: Mon, 22 Apr 2019 22:19:50 +0200 Subject: [PATCH] =?UTF-8?q?termptydbl:=20unbreak=20mutt/nethack/my=20shell?= =?UTF-8?q?=20prompt=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The following ranges are not double-width: 2500-257F Box Drawing 2580-259F Block Elements 25A0-25FF Geometric Shapes E000- F8FF Private Use Area --- src/bin/termptydbl.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/bin/termptydbl.c b/src/bin/termptydbl.c index 8299a79c..e0ed7e4e 100644 --- a/src/bin/termptydbl.c +++ b/src/bin/termptydbl.c @@ -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)) ||