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-lua.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-lua.c')
| -rw-r--r-- | vis-lua.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -128,7 +128,7 @@ void vis_lua_init(Vis *vis) { } void vis_lua_start(Vis *vis) { } void vis_lua_quit(Vis *vis) { } void vis_lua_file_open(Vis *vis, File *file) { } -void vis_lua_file_save(Vis *vis, File *file) { } +void vis_lua_file_save_post(Vis *vis, File *file) { } void vis_lua_file_close(Vis *vis, File *file) { } void vis_lua_win_open(Vis *vis, Win *win) { } void vis_lua_win_close(Vis *vis, Win *win) { } @@ -1544,9 +1544,9 @@ void vis_lua_file_open(Vis *vis, File *file) { lua_pop(L, 1); } -void vis_lua_file_save(Vis *vis, File *file) { +void vis_lua_file_save_post(Vis *vis, File *file) { lua_State *L = vis->lua; - vis_lua_event_get(L, "file_save"); + vis_lua_event_get(L, "file_save_post"); if (lua_isfunction(L, -1)) { obj_ref_new(L, file, "vis.file"); pcall(vis, L, 1, 0); |
