+2019-07-17 Tom Tromey <tom@tromey.com>
+
+ * tui/tui.c (tui_rl_other_window): Update.
+ * tui/tui-wingeneral.c (tui_data_window::refresh_window): Call
+ superclass method first. Always iterate over regs_content.
+ (tui_unhighlight_win, tui_highlight_win): Use refresh_window
+ method.
+ * tui/tui-win.c (tui_set_focus_command): Update.
+
2019-07-17 Tom Tromey <tom@tromey.com>
* tui/tui-win.c (tui_set_focus_command): Rename from
keypad (TUI_CMD_WIN->handle, (win_info != TUI_CMD_WIN));
}
- if (TUI_DATA_WIN && TUI_DATA_WIN->is_visible)
- TUI_DATA_WIN->refresh_all ();
xfree (buf_ptr);
printf_filtered (_("Focus set to %s window.\n"),
tui_win_with_focus ()->name ());
void
tui_data_window::refresh_window ()
{
- if (!regs_content.empty ())
+ tui_gen_win_info::refresh_window ();
+ for (auto &&win : regs_content)
{
- for (auto &&win : regs_content)
- {
- if (win != NULL)
- win->refresh_window ();
- }
+ if (win != NULL)
+ win->refresh_window ();
}
- tui_gen_win_info::refresh_window ();
}
/* Function to delete the curses window, checking for NULL. */
&& win_info->handle != NULL)
{
box_win (win_info, NO_HILITE);
- wrefresh (win_info->handle);
+ win_info->refresh_window ();
win_info->set_highlight (false);
}
}
&& win_info->handle != NULL)
{
box_win (win_info, HILITE);
- wrefresh (win_info->handle);
+ win_info->refresh_window ();
win_info->set_highlight (true);
}
}
if (win_info)
{
tui_set_win_focus_to (win_info);
- if (TUI_DATA_WIN && TUI_DATA_WIN->is_visible)
- TUI_DATA_WIN->refresh_all ();
keypad (TUI_CMD_WIN->handle, (win_info != TUI_CMD_WIN));
}
return 0;