aboutsummaryrefslogtreecommitdiff
path: root/sam.c
diff options
context:
space:
mode:
Diffstat (limited to 'sam.c')
-rw-r--r--sam.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sam.c b/sam.c
index 337f8a4..960c670 100644
--- a/sam.c
+++ b/sam.c
@@ -1349,7 +1349,7 @@ static bool cmd_write(Vis *vis, Win *win, Command *cmd, const char *argv[], Curs
return false;
}
- TextSave *ctx = text_save_begin(text, *name);
+ TextSave *ctx = text_save_begin(text, *name, TEXT_SAVE_AUTO);
if (!ctx) {
vis_info_show(vis, "Can't write `%s': %s", *name, strerror(errno));
return false;