diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-11-21 23:13:13 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-11-21 23:13:13 +0100 |
| commit | a7115b12267f6165426d0540da6ab0ae6f90a191 (patch) | |
| tree | f022738acdc5963ed6f5bc4384031191f3339d29 /vis.c | |
| parent | 095c502cc6510da652332cc6c406ab110a935806 (diff) | |
| download | vis-a7115b12267f6165426d0540da6ab0ae6f90a191.tar.gz vis-a7115b12267f6165426d0540da6ab0ae6f90a191.tar.xz | |
vis-lua: rename file_save event to file_save_post
Indicating that the event is triggered *after* a successfull write.
Diffstat (limited to 'vis.c')
| -rw-r--r-- | vis.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -58,7 +58,7 @@ bool vis_event_emit(Vis *vis, enum VisEvents id, ...) { vis->event->vis_start(vis); break; case VIS_EVENT_FILE_OPEN: - case VIS_EVENT_FILE_SAVE: + case VIS_EVENT_FILE_SAVE_POST: case VIS_EVENT_FILE_CLOSE: { File *file = va_arg(ap, File*); @@ -66,8 +66,8 @@ bool vis_event_emit(Vis *vis, enum VisEvents id, ...) { break; if (id == VIS_EVENT_FILE_OPEN && vis->event->file_open) vis->event->file_open(vis, file); - else if (id == VIS_EVENT_FILE_SAVE && vis->event->file_save) - vis->event->file_save(vis, file); + else if (id == VIS_EVENT_FILE_SAVE_POST && vis->event->file_save_post) + vis->event->file_save_post(vis, file); else if (id == VIS_EVENT_FILE_CLOSE && vis->event->file_close) vis->event->file_close(vis, file); break; |
