mirror of
https://github.com/tmate-io/tmate.git
synced 2025-08-09 13:54:54 +02:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user