diff --git a/src/dialogs/exmode.c b/src/dialogs/exmode.c index 440c2c3c..7647c25b 100644 --- a/src/dialogs/exmode.c +++ b/src/dialogs/exmode.c @@ -132,6 +132,8 @@ try_exmode_exec(struct session *ses, const char *val) while (1) { char *command, *args; + while (*next && isspace((unsigned char)(*next))) next++; + command = args = next; while (*command == ':') command++;