about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--Src/Zle/zle_misc.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 21469f438..6df6afe04 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2005-09-09  Peter Stephenson  <pws@csr.com>
 
+	* 21717: Src/Zle/zle_misc.c: where-is and execute-named-command
+	didn't work with multibyte support because the remainder of
+	the character wasn't read properly.
+
 	* 21709 plus tweaks: Doc/Zsh/zle.yo, Src/builtin.c, Src/init.c,
 	Src/Zle/zle_keymap.c, Src/Zle/zle_main.c, Src/Zle/zle_misc.c,
 	Src/Zle/zle_vi.c: Use $KEYTIMOUT for bytes after the first
diff --git a/Src/Zle/zle_misc.c b/Src/Zle/zle_misc.c
index 05a780b0c..7159113a6 100644
--- a/Src/Zle/zle_misc.c
+++ b/Src/Zle/zle_misc.c
@@ -955,7 +955,7 @@ executenamedcommand(char *prmt)
 		else {
 #ifdef ZLE_UNICODE_SUPPORT
 		    if (!lastchar_wide_valid)
-			getrestchar(0);
+			getrestchar(lastchar);
 		    if (iswcntrl(lastchar_wide))
 #else
 		    if (icntrl(lastchar))