diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-09-19 14:18:00 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-09-19 14:18:00 +0200 |
| commit | cea4400702eb0eeba57598540388d98a5104cb2d (patch) | |
| tree | 9f047c37e2b86aee2ff96f52399476a3fcb561b1 /sam.c | |
| parent | 712adea237e84a744fa3451a6b2cc612d5527656 (diff) | |
| download | vis-cea4400702eb0eeba57598540388d98a5104cb2d.tar.gz vis-cea4400702eb0eeba57598540388d98a5104cb2d.tar.xz | |
vis: do not invoke file save event for internal files
Diffstat (limited to 'sam.c')
| -rw-r--r-- | sam.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
