From 19a997b78e7a2cf9f6ae9d1ca50521d95d95e873 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Wed, 12 Sep 2018 10:17:57 -0400 Subject: [PATCH] tweaked argument handling for tags --- tide.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tide.c b/tide.c index bd699e2..9061df1 100644 --- a/tide.c +++ b/tide.c @@ -91,7 +91,8 @@ void exec(char* cmd) { /* see if it matches a builtin tag */ Tag* tag = tag_lookup(cmd); if (tag) { - while (*cmd && !isspace(*cmd++)); + for (; *cmd && !isspace(*cmd); cmd++); /* strip off tag name */ + for (; *cmd && isspace(*cmd); cmd++); /* strip off leading space */ tag_exec(tag, (*cmd ? strdup(cmd) : NULL)); } else { cmd_exec(cmd); -- 2.49.0