From 5a0c547e919bded1d4966213beb9a3ae89b08698 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 21 Apr 2008 11:49:55 +0000 Subject: 24856: add IS_COMBINING() and IS_BASECHAR() and widen tests --- Src/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Src/utils.c') diff --git a/Src/utils.c b/Src/utils.c index 59a496fcf..24e709c24 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -3088,7 +3088,7 @@ wcsitype(wchar_t c, int itype) * logically they are still part of the word, even if they * don't get displayed properly, so always do this. */ - if (iswpunct(c) && wcwidth(c) == 0) + if (IS_COMBINING(c)) return 1; return !!wmemchr(wordchars_wide.chars, c, wordchars_wide.len); -- cgit 1.4.1