mirror of
https://github.com/tmux/tmux.git
synced 2025-04-15 15:58:50 +00:00
Exit 1 correctly if source-file fails.
This commit is contained in:
parent
0ec410689c
commit
299d4f3aaa
@ -96,6 +96,8 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
|
||||
globfree(&g);
|
||||
}
|
||||
if (cfg_finished) {
|
||||
if (retval == CMD_RETURN_ERROR && c->session == NULL)
|
||||
c->retval = 1;
|
||||
new_item = cmdq_get_callback(cmd_source_file_done, NULL);
|
||||
cmdq_insert_after(item, new_item);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user