summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNikita Zlobin <cook60020tmp@mail.ru>2023-08-10 23:19:53 +0500
committerDave Davenport <qball@gmpclient.org>2023-08-11 08:51:00 +0200
commit528419269e7939e851ea426e34fb7ae2eec0a561 (patch)
tree68012f814da1ef39dde68392a2fb2ba55679d207
parent82f9605c30e0765816aa23384edf9f99f68e4544 (diff)
script: Let script handle empty custom input
-rw-r--r--source/modes/script.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/modes/script.c b/source/modes/script.c
index 92ec95ef..2bf60286 100644
--- a/source/modes/script.c
+++ b/source/modes/script.c
@@ -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);