There are two functions in which we call tui_try_activate, but don't check for
the result.
If it's not a bug, then it's an inconsistency.
Fix this in both functions.
Tested on x86_64-linux.
Reviewed-By: Keith Seitz <keiths@redhat.com>
static int
tui_rl_other_window (int count, int key)
{
- tui_try_activate ();
-
- tui_set_win_focus_to (tui_next_win (tui_win_with_focus ()));
+ if (tui_try_activate ())
+ tui_set_win_focus_to (tui_next_win (tui_win_with_focus ()));
return 0;
}
static int
tui_rl_next_keymap (int notused1, int notused2)
{
- tui_try_activate ();
+ if (!tui_try_activate ())
+ return 0;
if (rl_end)
{