Improve help tab item choice error messages

This commit is contained in:
Přemysl Eric Janouch 2022-08-24 09:05:28 +02:00
parent 24e57872d8
commit da14bdbd39
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 6 additions and 3 deletions

View File

@ -4048,9 +4048,12 @@ help_tab_on_action (enum action action)
return false;
action = g_help_tab.actions[tab->item_selected];
return action != ACTION_NONE
&& action != ACTION_CHOOSE // avoid recursion
&& app_process_action (action);
if (action == ACTION_NONE || action == ACTION_CHOOSE /* avoid recursion */)
return false;
// XXX: We can't propagate failure, which produces beeps in the TUI, but we
// don't want to let our caller show a bad "can't do that" message either.
return app_process_action (action), true;
}
static void