diff options
author | nicm <nicm> | 2018-05-24 09:42:49 +0000 |
---|---|---|
committer | nicm <nicm> | 2018-05-24 09:42:49 +0000 |
commit | b9a6162d2f9bea63c3ad421e9c3969eea2852b00 (patch) | |
tree | d944f370a3a21ea175f9fe958f9773146cdbfc1a /cmd-source-file.c | |
parent | 8f5903d7c3d75763ed5dc37ff49a39fe3b3b7831 (diff) |
Make server_client_get_cwd used (almost) everywhere we need to work out
the cwd, and do not fall back to "." as it is pretty useless. GitHub
issue 1331.
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 0328089f..ffb7f423 100644 --- a/cmd-source-file.c +++ b/cmd-source-file.c @@ -61,7 +61,7 @@ cmd_source_file_exec(struct cmd *self, struct cmdq_item *item) if (*path == '/') pattern = xstrdup(path); else { - utf8_stravis(&tmp, server_client_get_cwd(c), VIS_GLOB); + utf8_stravis(&tmp, server_client_get_cwd(c, NULL), VIS_GLOB); xasprintf(&pattern, "%s/%s", tmp, path); free(tmp); } |