aboutsummaryrefslogtreecommitdiff
path: root/sam.c
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-12-14 13:02:47 +0100
committerMarc André Tanner <mat@brain-dump.org>2016-12-14 14:44:49 +0100
commite80d859867e515d95492e61bf5dca08a1c325130 (patch)
treeb970c6e7e42ab0d951c0ed1cf705dc43220efe61 /sam.c
parent5b689baf18ca5e1feec1fc129d8af19f9c987c52 (diff)
downloadvis-e80d859867e515d95492e61bf5dca08a1c325130.tar.gz
vis-e80d859867e515d95492e61bf5dca08a1c325130.tar.xz
text: expose text save method to calling code
There are cases where it is useful to specify how the file should be saved.
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;