about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2005-10-28 22:13:44 +0000
committerWayne Davison <wayned@users.sourceforge.net>2005-10-28 22:13:44 +0000
commit0b31102c4c3890b80025c73f64a408b509123efd (patch)
tree7939db0885b7326513e09e45d06d8bc6c9d0f0c4 /Src
parent579e15ba3237f7259fd36161923e773fb26e1182 (diff)
downloadzsh-0b31102c4c3890b80025c73f64a408b509123efd.tar.gz
zsh-0b31102c4c3890b80025c73f64a408b509123efd.tar.xz
zsh-0b31102c4c3890b80025c73f64a408b509123efd.zip
Got rid of a use of WEOF when MULTIBYTE_SUPPORT is not defined
(which fixed a signed vs unsigned comparison compiler warning).
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/zle_refresh.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index b3ca43fdb..280628318 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -1138,8 +1138,10 @@ refreshline(int ln)
 
     /* inserting & deleting chars: we can if there's no right-prompt */
 	if ((ln || !put_rpmpt || !oput_rpmpt) 
-	    && (nl[1] && ol[1] && nl[1] != ol[1])
-	    && *ol != WEOF && *nl != WEOF) { 
+#ifdef MULTIBYTE_SUPPORT
+	    && *ol != WEOF && *nl != WEOF
+#endif
+	    && nl[1] && ol[1] && nl[1] != ol[1]) { 
 
 	/* deleting characters - see if we can find a match series that
 	   makes it cheaper to delete intermediate characters