From 0b31102c4c3890b80025c73f64a408b509123efd Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Fri, 28 Oct 2005 22:13:44 +0000 Subject: Got rid of a use of WEOF when MULTIBYTE_SUPPORT is not defined (which fixed a signed vs unsigned comparison compiler warning). --- Src/Zle/zle_refresh.c | 6 ++++-- 1 file 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 -- cgit 1.4.1