summaryrefslogtreecommitdiff
path: root/ted.c
diff options
context:
space:
mode:
Diffstat (limited to 'ted.c')
-rw-r--r--ted.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ted.c b/ted.c
index bf48559..8262d4f 100644
--- a/ted.c
+++ b/ted.c
@@ -245,6 +245,7 @@ Settings *ted_default_settings(Ted *ted) {
if (!streq(ted->default_settings_cwd, ted->cwd)) {
// recompute default settings
ted_compute_settings(ted, ted->cwd, LANG_NONE, &ted->default_settings);
+ strbuf_cpy(ted->default_settings_cwd, ted->cwd);
}
return &ted->default_settings;
}