From 7d03e1598fb6f1860643b5dae15f28a7b856bf02 Mon Sep 17 00:00:00 2001 From: anon Date: Thu, 7 Sep 2023 14:14:31 +0200 Subject: [PATCH] display the correct help message --- src/help.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/help.c b/src/help.c index b412d86..590f95f 100644 --- a/src/help.c +++ b/src/help.c @@ -97,10 +97,12 @@ static char changeing_help_msg[] = "?\t\tDisplay this list of commands.\n"; const char *help(void) { - if(input_mode == INPUT_CHANGE) { - return help_msg; - } else { - return changeing_help_msg; + switch (input_mode) { + case INPUT_CHANGE: + case INPUT_CHANGE_TO: + return changeing_help_msg; + default: + return help_msg; } }