Skip to content

Commit

Permalink
Merge pull request #1105 from zandrmartin/fix-workspace-output-assign…
Browse files Browse the repository at this point in the history
…ment

fix workspace output assignment
  • Loading branch information
ddevault committed Mar 14, 2017
1 parent 1c9fa55 commit e221d28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway/commands/workspace.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct cmd_results *cmd_workspace(int argc, char **argv) {
"Unable to allocate workspace output");
}
wso->workspace = join_args(argv, argc - 2);
wso->output = strdup(argv[output_location]);
wso->output = strdup(argv[output_location + 1]);
int i = -1;
if ((i = list_seq_find(config->workspace_outputs, workspace_output_cmp_workspace, wso)) != -1) {
struct workspace_output *old = config->workspace_outputs->items[i];
Expand Down

0 comments on commit e221d28

Please sign in to comment.