mirror of
https://github.com/tmux/tmux.git
synced 2025-01-22 05:37:07 +00:00
Restore source-file -q behaviour, broken in r1.42; OK nicm@
This commit is contained in:
parent
1764f66b7d
commit
5cd00eda0b
@ -125,7 +125,6 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
{
|
{
|
||||||
struct args *args = self->args;
|
struct args *args = self->args;
|
||||||
struct cmd_source_file_data *cdata;
|
struct cmd_source_file_data *cdata;
|
||||||
int flags = 0;
|
|
||||||
struct client *c = item->client;
|
struct client *c = item->client;
|
||||||
enum cmd_retval retval = CMD_RETURN_NORMAL;
|
enum cmd_retval retval = CMD_RETURN_NORMAL;
|
||||||
char *pattern, *cwd;
|
char *pattern, *cwd;
|
||||||
@ -161,7 +160,7 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item)
|
|||||||
|
|
||||||
if ((result = glob(pattern, 0, NULL, &g)) != 0) {
|
if ((result = glob(pattern, 0, NULL, &g)) != 0) {
|
||||||
if (result != GLOB_NOMATCH ||
|
if (result != GLOB_NOMATCH ||
|
||||||
(~flags & CMD_PARSE_QUIET)) {
|
(~cdata->flags & CMD_PARSE_QUIET)) {
|
||||||
if (result == GLOB_NOMATCH)
|
if (result == GLOB_NOMATCH)
|
||||||
error = strerror(ENOENT);
|
error = strerror(ENOENT);
|
||||||
else if (result == GLOB_NOSPACE)
|
else if (result == GLOB_NOSPACE)
|
||||||
|
Loading…
Reference in New Issue
Block a user