From f555c00e0b0be14cd553c7c803d6136b86f2012b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Mon, 21 Nov 2016 23:32:28 +0100 Subject: vis-lua: pass path as second argument to file_save_post event hook The passed path can be different from file.name for instance when opening a file `a` and then doing `:w b` where file.name will be the former and path the latter. --- vis-lua.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis-lua.h') diff --git a/vis-lua.h b/vis-lua.h index 9d19a19..7dab14e 100644 --- a/vis-lua.h +++ b/vis-lua.h @@ -23,7 +23,7 @@ void vis_lua_init(Vis*); void vis_lua_start(Vis*); void vis_lua_quit(Vis*); void vis_lua_file_open(Vis*, File*); -void vis_lua_file_save_post(Vis*, File*); +void vis_lua_file_save_post(Vis*, File*, const char *path); void vis_lua_file_close(Vis*, File*); void vis_lua_win_open(Vis*, Win*); void vis_lua_win_close(Vis*, Win*); -- cgit v1.2.3