about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog3
-rw-r--r--Src/Zle/zle_main.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5f7468c72..3eacfc50c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-09-09  Peter Stephenson  <pws@csr.com>
 
+	* 21720: Src/Zle/zle_main.c: getrestchar() from 21709 didn't
+	return properly.
+
 	* d'après 21719: Src/builtin.c, Src/init.c, Src/params.c: Add some
 	mod_exports.
 
diff --git a/Src/Zle/zle_main.c b/Src/Zle/zle_main.c
index 4f598b889..1b62ff027 100644
--- a/Src/Zle/zle_main.c
+++ b/Src/Zle/zle_main.c
@@ -814,7 +814,8 @@ getrestchar(int inchar)
 		 * timed out.  This probably indicates a duff character.
 		 * Return a '?'.
 		 */
-		lastchar_wide = L'?';
+		lastchar = '?';
+		return lastchar_wide = L'?';
 	    }
 	    else
 		return lastchar_wide = WEOF;