summaryrefslogtreecommitdiff
path: root/command.c
diff options
context:
space:
mode:
Diffstat (limited to 'command.c')
-rw-r--r--command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/command.c b/command.c
index 05b36cc..b5d2f5d 100644
--- a/command.c
+++ b/command.c
@@ -653,7 +653,7 @@ void command_execute_ex(Ted *ted, Command c, const CommandArgument *full_argumen
case CMD_SHELL: {
const char *str = argument_str;
if (str) {
- strbuf_cpy(ted->build_dir, ted->cwd);
+ build_set_working_directory(ted, ted->cwd);
build_start_with_command(ted, str);
} else {
menu_open(ted, MENU_SHELL);