aboutsummaryrefslogtreecommitdiff
path: root/vis.c
diff options
context:
space:
mode:
Diffstat (limited to 'vis.c')
-rw-r--r--vis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vis.c b/vis.c
index b2559d7..70b6049 100644
--- a/vis.c
+++ b/vis.c
@@ -984,7 +984,7 @@ static bool cmd_wq(const char *argv[]) {
static bool cmd_write(const char *argv[]) {
Text *text = vis->win->text;
if (!argv[1])
- argv[1] = text_filename(text);
+ argv[1] = text_filename_get(text);
for (const char **file = &argv[1]; *file; file++) {
if (text_save(text, *file))
return false;