Skip to content

Commit

Permalink
script: Let script handle empty custom input
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita Zlobin authored and DaveDavenport committed Aug 11, 2023
1 parent 82f9605 commit 5284192
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions source/modes/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,7 @@ static ModeMode script_mode_result(Mode *sw, int mretv, char **input,
new_list =
execute_executor(sw, rmpd->cmd_list[selected_line].entry, &new_length,
1, &(rmpd->cmd_list[selected_line]));
} else if ((mretv & MENU_CUSTOM_INPUT) && *input != NULL &&
*input[0] != '\0') {
} else if ((mretv & MENU_CUSTOM_INPUT) && *input != NULL) {
if (rmpd->no_custom == FALSE) {
script_mode_reset_highlight(sw);
new_list = execute_executor(sw, *input, &new_length, 2, NULL);
Expand Down

0 comments on commit 5284192

Please sign in to comment.