+2019-07-17 Tom Tromey <tom@tromey.com>
+
+ * tui/tui-win.c (tui_set_focus_command): Rename from
+ tui_set_focus. Call tui_enable.
+ (tui_set_focus_command): Remove.
+
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.c (tui_show_exec_info_content): Don't call
static void tui_set_tab_width_command (const char *, int);
static void tui_refresh_all_command (const char *, int);
static void tui_all_windows_info (const char *, int);
-static void tui_set_focus_command (const char *, int);
static void tui_scroll_forward_command (const char *, int);
static void tui_scroll_backward_command (const char *, int);
static void tui_scroll_left_command (const char *, int);
/* Set focus to the window named by 'arg'. */
static void
-tui_set_focus (const char *arg, int from_tty)
+tui_set_focus_command (const char *arg, int from_tty)
{
+ tui_enable ();
+
if (arg != NULL)
{
char *buf_ptr = xstrdup (arg);
warning (_("Incorrect Number of Arguments.\n%s"), FOCUS_USAGE);
}
-static void
-tui_set_focus_command (const char *arg, int from_tty)
-{
- /* Make sure the curses mode is enabled. */
- tui_enable ();
- tui_set_focus (arg, from_tty);
-}
-
-
static void
tui_all_windows_info (const char *arg, int from_tty)
{