* tui.c (tui_rl_switch_mode): Remove unecessary TUI switch printfs.
[deliverable/binutils-gdb.git] / gdb / tui / tuiIO.c
index 2e3d79f2f4bdfdd80367a07d0746ca2e21f13831..f70df8f47487861998d24298c900207225c76f45 100644 (file)
@@ -185,7 +185,12 @@ tui_redisplay_readline (void)
   WINDOW *w;
   char *prompt;
   int start_line;
-  
+
+  /* Detect when we temporarily left SingleKey and now the readline
+     edit buffer is empty, automatically restore the SingleKey mode.  */
+  if (tui_current_key_mode == tui_one_command_mode && rl_end == 0)
+    tui_set_key_mode (tui_single_key_mode);
+
   if (tui_current_key_mode == tui_single_key_mode)
     prompt = "";
   else
This page took 0.023178 seconds and 4 git commands to generate.