summaryrefslogtreecommitdiff
path: root/src/fns.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1993-03-25 06:32:43 +0000
committerRichard M. Stallman <rms@gnu.org>1993-03-25 06:32:43 +0000
commita63f658b5516f2412460b43953cdd6e912f29168 (patch)
treea252bcaeb675dac90f49b67f54b755749a072574 /src/fns.c
parent33d093846473af06e8b41a6f47c01063d13ade5e (diff)
downloademacs-a63f658b5516f2412460b43953cdd6e912f29168.tar.gz
(Fy_or_n_p): Ensure cursor_in_echo_area = 0 when quit.
Diffstat (limited to 'src/fns.c')
-rw-r--r--src/fns.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fns.c b/src/fns.c
index 27927d73abe..667612237af 100644
--- a/src/fns.c
+++ b/src/fns.c
@@ -1112,6 +1112,10 @@ Also accepts Space to mean yes, or Delete to mean no.")
cursor_in_echo_area = 1;
obj = read_char (0, 0, 0, Qnil, 0);
+ cursor_in_echo_area = 0;
+ /* If we need to quit, quit with cursor_in_echo_area = 0. */
+ QUIT;
+
key = Fmake_vector (make_number (1), obj);
def = Flookup_key (map, key);
answer_string = Fsingle_key_description (obj);