diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-04-21 11:49:55 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-04-21 11:49:55 +0000 |
commit | 5a0c547e919bded1d4966213beb9a3ae89b08698 (patch) | |
tree | 2dcda2ad23f564cb78685345dc86336d2d87a584 /Src/utils.c | |
parent | 500c402380849d40d6e0eabd6cc063add47a57af (diff) | |
download | zsh-5a0c547e919bded1d4966213beb9a3ae89b08698.tar.gz zsh-5a0c547e919bded1d4966213beb9a3ae89b08698.tar.xz zsh-5a0c547e919bded1d4966213beb9a3ae89b08698.zip |
24856: add IS_COMBINING() and IS_BASECHAR() and widen tests
Diffstat (limited to 'Src/utils.c')
-rw-r--r-- | Src/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |