diff options
Diffstat (limited to 'sway/commands/output.c')
-rw-r--r-- | sway/commands/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/output.c b/sway/commands/output.c index e747eb4e..35bc8099 100644 --- a/sway/commands/output.c +++ b/sway/commands/output.c | |||
@@ -188,7 +188,7 @@ static struct cmd_results *cmd_output_background(struct output_config *output, | |||
188 | } | 188 | } |
189 | 189 | ||
190 | wordexp_t p; | 190 | wordexp_t p; |
191 | char *src = join_args(argv + *i - 1, j); | 191 | char *src = join_args(argv + *i, j); |
192 | if (wordexp(src, &p, 0) != 0 || p.we_wordv[0] == NULL) { | 192 | if (wordexp(src, &p, 0) != 0 || p.we_wordv[0] == NULL) { |
193 | return cmd_results_new(CMD_INVALID, "output", | 193 | return cmd_results_new(CMD_INVALID, "output", |
194 | "Invalid syntax (%s).", src); | 194 | "Invalid syntax (%s).", src); |