Change so that source-file errors are reported correctly in control

mode, from Sergei Nizovtsev in GitHub issue 4626.
This commit is contained in:
nicm
2025-09-08 07:30:15 +00:00
parent 7cc15969ff
commit d73196750f
2 changed files with 7 additions and 3 deletions

View File

@@ -202,7 +202,7 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
cdata->flags |= CMD_PARSE_QUIET;
if (args_has(args, 'n'))
cdata->flags |= CMD_PARSE_PARSEONLY;
if (args_has(args, 'v'))
if (args_has(args, 'v') && (~c->flags & CLIENT_CONTROL))
cdata->flags |= CMD_PARSE_VERBOSE;
cwd = cmd_source_file_quote_for_glob(server_client_get_cwd(c, NULL));