diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-08-23 17:29:51 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-08-23 17:29:51 +0000 |
commit | c7394ac4e0f7e6e034fbb4b050de6f713bb9f6e0 (patch) | |
tree | 5922399cc29cc65877260b5bfc36ba0b1cfafbc4 /cmd-source-file.c | |
parent | 43cd40e87a41d9504dcac99419c96e3cdbb81029 (diff) | |
download | rtmux-c7394ac4e0f7e6e034fbb4b050de6f713bb9f6e0.tar.gz rtmux-c7394ac4e0f7e6e034fbb4b050de6f713bb9f6e0.tar.bz2 rtmux-c7394ac4e0f7e6e034fbb4b050de6f713bb9f6e0.zip |
When using source-file, run the commands in the context of the source-file
command rather than with no context. This makes things like attach work from a
file.
Diffstat (limited to 'cmd-source-file.c')
-rw-r--r-- | cmd-source-file.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd-source-file.c b/cmd-source-file.c index b42c5785..247b06ec 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -90,7 +90,7 @@ cmd_source_file_exec(struct cmd *self, struct cmd_ctx *ctx) struct cmd_source_file_data *data = self->data; char *cause; - if (load_cfg(data->path, &cause) != 0) { + if (load_cfg(data->path, ctx, &cause) != 0) { ctx->error(ctx, "%s", cause); xfree(cause); return (-1); |