display the correct help message

This commit is contained in:
anon 2023-09-07 14:14:31 +02:00
parent 521319a575
commit 7d03e1598f

View File

@ -97,10 +97,12 @@ static char changeing_help_msg[] =
"?\t\tDisplay this list of commands.\n"; "?\t\tDisplay this list of commands.\n";
const char *help(void) { const char *help(void) {
if(input_mode == INPUT_CHANGE) { switch (input_mode) {
return help_msg; case INPUT_CHANGE:
} else { case INPUT_CHANGE_TO:
return changeing_help_msg; return changeing_help_msg;
default:
return help_msg;
} }
} }