From c7ad5c8d869d4d5e55439cc7c6c1d45f8e67b682 Mon Sep 17 00:00:00 2001 From: Benno Schulenberg Date: Fri, 13 Dec 2019 19:06:39 +0100 Subject: [PATCH] tweaks: reshuffle an item, to avoid a lone 'else' --- src/rcfile.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/rcfile.c b/src/rcfile.c index 6195ae10..f4d18e06 100644 --- a/src/rcfile.c +++ b/src/rcfile.c @@ -222,13 +222,12 @@ keystruct *strtosc(const char *input) s->toggle = 0; #endif -#ifdef ENABLE_HELP - if (!strcmp(input, "help")) - s->func = do_help_void; - else -#endif if (!strcmp(input, "cancel")) s->func = do_cancel; +#ifdef ENABLE_HELP + else if (!strcmp(input, "help")) + s->func = do_help_void; +#endif else if (!strcmp(input, "exit")) s->func = do_exit; else if (!strcmp(input, "discardbuffer"))