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.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vis.h') diff --git a/vis.h b/vis.h index 2058669..f3366c7 100644 --- a/vis.h +++ b/vis.h @@ -32,7 +32,7 @@ typedef struct { void (*vis_start)(Vis*); void (*vis_quit)(Vis*); void (*file_open)(Vis*, File*); - void (*file_save_post)(Vis*, File*); + void (*file_save_post)(Vis*, File*, const char *path); void (*file_close)(Vis*, File*); void (*win_open)(Vis*, Win*); void (*win_close)(Vis*, Win*); -- cgit v1.2.3