From dc29116a4bcba415123375ff64a21999f246fef2 Mon Sep 17 00:00:00 2001 From: "Kim F. Storm" Date: Wed, 15 Dec 2004 00:07:15 +0000 Subject: [PATCH] (read_char): Save and restore echo_string when handling input method. --- src/keyboard.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/keyboard.c b/src/keyboard.c index b1f8a55507d..95de9c2c6ad 100644 --- a/src/keyboard.c +++ b/src/keyboard.c @@ -3044,6 +3044,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) /* Save the echo status. */ int saved_immediate_echo = current_kboard->immediate_echo; struct kboard *saved_ok_to_echo = ok_to_echo_at_next_pause; + Lisp_Object saved_echo_string = current_kboard->echo_string; int saved_echo_after_prompt = current_kboard->echo_after_prompt; #if 0 @@ -3098,6 +3099,7 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu) cancel_echoing (); ok_to_echo_at_next_pause = saved_ok_to_echo; + current_kboard->echo_string = saved_echo_string; current_kboard->echo_after_prompt = saved_echo_after_prompt; if (saved_immediate_echo) echo_now (); -- 2.39.2