Commit ed087faa authored by Eli Zaretskii's avatar Eli Zaretskii

Don't signal Quit from 'while-no-input' on TTY frames

* src/keyboard.c (read_char): Don't inject quit-char after
longjmp if while-no-input is in effect.  (Bug#34535)
parent 4b63c21f
Pipeline #883 failed with stage
in 60 minutes and 2 seconds
......@@ -2551,7 +2551,10 @@ read_char (int commandflag, Lisp_Object map,
restore_getcjmp (save_jump);
pthread_sigmask (SIG_SETMASK, &empty_mask, 0);
unbind_to (jmpcount, Qnil);
XSETINT (c, quit_char);
/* If we are in while-no-input, don't trigger C-g, as that will
quit instead of letting while-no-input do its thing. */
if (!EQ (Vquit_flag, Vthrow_on_input))
XSETINT (c, quit_char);
internal_last_event_frame = selected_frame;
Vlast_event_frame = internal_last_event_frame;
/* If we report the quit char as an event,
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment