tweaks: reshuffle an item, to avoid a lone 'else'

master
Benno Schulenberg 2019-12-13 19:06:39 +01:00
parent 0b1a766964
commit c7ad5c8d86
1 changed files with 4 additions and 5 deletions

View File

@ -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"))