summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-05-10 23:38:17 +0000
committerKarl Heuer <kwzh@gnu.org>1994-05-10 23:38:17 +0000
commit3b91a4f4c9524d025a110b0005f13217cbbe1b7c (patch)
tree96b92ce5d89e0bb85fdecd17e8e514faa3595f5d /src
parentd1dacaa04933136ca97511983b6bf671b62c36e5 (diff)
downloademacs-3b91a4f4c9524d025a110b0005f13217cbbe1b7c.tar.gz
(read_char): Preserve echo area on asynch buffer switch.
Diffstat (limited to 'src')
-rw-r--r--src/keyboard.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index 910bbf68da7..e32d9016f6e 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -1629,7 +1629,9 @@ read_char (commandflag, nmaps, maps, prev_event, used_mouse_menu)
start_polling ();
- echo_area_glyphs = 0;
+ /* Don't wipe the echo area for a trivial event. */
+ if (XTYPE (c) != Lisp_Buffer)
+ echo_area_glyphs = 0;
/* Handle things that only apply to characters. */
if (XTYPE (c) == Lisp_Int)