From e80d859867e515d95492e61bf5dca08a1c325130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Wed, 14 Dec 2016 13:02:47 +0100 Subject: text: expose text save method to calling code There are cases where it is useful to specify how the file should be saved. --- sam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sam.c') 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; -- cgit v1.2.3