diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-12-14 13:02:47 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-12-14 14:44:49 +0100 |
| commit | e80d859867e515d95492e61bf5dca08a1c325130 (patch) | |
| tree | b970c6e7e42ab0d951c0ed1cf705dc43220efe61 /sam.c | |
| parent | 5b689baf18ca5e1feec1fc129d8af19f9c987c52 (diff) | |
| download | vis-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
