summary refs log tree commit diff
diff options
context:
space:
mode:
authorWayne Davison <wayned@users.sourceforge.net>2006-01-12 08:33:15 +0000
committerWayne Davison <wayned@users.sourceforge.net>2006-01-12 08:33:15 +0000
commit70de60a9625c0e828db8218e9c4726788c4fcf25 (patch)
tree0e0fc5ab1f608dbb129d53a92acc9c6d4f265e42
parent0d81c253ccde5ec63917fa554d344e28c9a0a42f (diff)
downloadzsh-70de60a9625c0e828db8218e9c4726788c4fcf25.tar.gz
zsh-70de60a9625c0e828db8218e9c4726788c4fcf25.tar.xz
zsh-70de60a9625c0e828db8218e9c4726788c4fcf25.zip
The new "eol" var was being set in singlerefresh(), but not accessed.
-rw-r--r--Src/Zle/zle_refresh.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/zle_refresh.c b/Src/Zle/zle_refresh.c
index a1a2ebb8d..fb2e1240d 100644
--- a/Src/Zle/zle_refresh.c
+++ b/Src/Zle/zle_refresh.c
@@ -1493,7 +1493,7 @@ singlerefresh(ZLE_STRING_T tmpline, int tmpll, int tmpcs)
     /* Reset shift state, maybe. */
     memset(&mbs, '\0', sizeof mbs);
     for (lpptr = lpromptbuf; lpptr < lpend; ) {
-	size_t cnt = mbrtowc(lpwp, lpptr, lpend - lpptr, &mbs);
+	size_t cnt = eol ? MB_INVALID : mbrtowc(lpwp, lpptr, lpend-lpptr, &mbs);
 	switch (cnt) {
 	case MB_INCOMPLETE:
 	    eol = 1;