From b9a6162d2f9bea63c3ad421e9c3969eea2852b00 Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 24 May 2018 09:42:49 +0000 Subject: 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. --- cmd-source-file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-source-file.c') 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); } -- cgit