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 919bf2f..c6cd22c 100644
--- a/sam.c
+++ b/sam.c
@@ -1103,7 +1103,7 @@ static bool cmd_write(Vis *vis, Win *win, Command *cmd, const char *argv[], Curs
file_name_set(file, *name);
if (strcmp(file->name, *name) == 0)
file->stat = text_stat(text);
- if (vis->event && vis->event->file_save)
+ if (!file->internal && vis->event && vis->event->file_save)
vis->event->file_save(vis, file);
}
return true;