about summary refs log tree commit diff
path: root/Src/utils.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2008-04-21 11:49:55 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2008-04-21 11:49:55 +0000
commit5a0c547e919bded1d4966213beb9a3ae89b08698 (patch)
tree2dcda2ad23f564cb78685345dc86336d2d87a584 /Src/utils.c
parent500c402380849d40d6e0eabd6cc063add47a57af (diff)
downloadzsh-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.c2
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);