about summary refs log tree commit diff
path: root/Src/Zle/zle.h
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-09-09 20:34:42 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-09-09 20:34:42 +0000
commitd33c6e502ab4d4398efa797702b6b115e6f5ff41 (patch)
treed0c5ed4be35dd4a11d99050dbac0138ed241b12b /Src/Zle/zle.h
parent58b9e731da1f2a4eac68e06e986c9c25adafc36e (diff)
downloadzsh-d33c6e502ab4d4398efa797702b6b115e6f5ff41.tar.gz
zsh-d33c6e502ab4d4398efa797702b6b115e6f5ff41.tar.xz
zsh-d33c6e502ab4d4398efa797702b6b115e6f5ff41.zip
21722: fix multibyte word stuff
Diffstat (limited to 'Src/Zle/zle.h')
-rw-r--r--Src/Zle/zle.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/Zle/zle.h b/Src/Zle/zle.h
index 2276f42b3..4b3f3f75a 100644
--- a/Src/Zle/zle.h
+++ b/Src/Zle/zle.h
@@ -69,11 +69,13 @@ typedef wint_t   ZLE_INT_T;
 /*
  * TODO: doesn't work on arguments with side effects.
  * Also YUK.  Not even sure this is guaranteed to work.
+ * Should be easy to do along the lines of wcsiword.
  */
 #define ZC_iident(x)	(x < 256 && iident((int)x))
 
 #define ZC_tolower towlower
 #define ZC_toupper towupper
+#define ZC_iword  wcsiword
 
 #define LASTFULLCHAR	lastchar_wide
 
@@ -122,6 +124,7 @@ static inline int ZS_strncmp(ZLE_STRING_T s1, ZLE_STRING_T s2, size_t l)
 
 #define ZC_tolower tulower
 #define ZC_toupper tuupper
+#define ZC_iword   iword
 
 #define LASTFULLCHAR	lastchar