From 09a854378a739840138eb959da329945958a6a18 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 21 Nov 2005 15:22:12 +0000 Subject: 22009: another double-width character fix --- Src/Zle/zle_refresh.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Src') diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c index fbf241919..bd3875e19 100644 --- a/Src/Zle/zle_refresh.c +++ b/Src/Zle/zle_refresh.c @@ -1201,6 +1201,12 @@ refreshline(int ln) /* we can't do any fancy tricks, so just dump the single character and keep on trying */ #ifdef MULTIBYTE_SUPPORT + /* + * in case we were tidying up a funny-width character when we + * reached the end of the new line... + */ + if (!*nl) + break; do { #endif zputc(*nl); -- cgit 1.4.1