TUI: check whether in secondary prompt instead of immediate_quit
[deliverable/binutils-gdb.git] / gdb / tui / tui-io.c
index 18c648c08fdbe9a8f7d04c406c6a99e9149ca295..3fa32db210494cee547048473f17e746d163d284 100644 (file)
@@ -212,7 +212,7 @@ tui_redisplay_readline (void)
      The command could call prompt_for_continue and we must not
      restore SingleKey so that the prompt and normal keymap are used.  */
   if (tui_current_key_mode == TUI_ONE_COMMAND_MODE && rl_end == 0
-      && immediate_quit == 0)
+      && !gdb_in_secondary_prompt_p ())
     tui_set_key_mode (TUI_SINGLE_KEY_MODE);
 
   if (tui_current_key_mode == TUI_SINGLE_KEY_MODE)
This page took 0.023568 seconds and 4 git commands to generate.