diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-11-21 23:32:28 +0100 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-11-22 14:57:26 +0100 |
| commit | f555c00e0b0be14cd553c7c803d6136b86f2012b (patch) | |
| tree | 30cc25c10c18cd70b585ebc2c3b27b1631049ec5 /sam.c | |
| parent | a7115b12267f6165426d0540da6ab0ae6f90a191 (diff) | |
| download | vis-f555c00e0b0be14cd553c7c803d6136b86f2012b.tar.gz vis-f555c00e0b0be14cd553c7c803d6136b86f2012b.tar.xz | |
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.
Diffstat (limited to 'sam.c')
| -rw-r--r-- | sam.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1329,7 +1329,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); - vis_event_emit(vis, VIS_EVENT_FILE_SAVE_POST, file); + vis_event_emit(vis, VIS_EVENT_FILE_SAVE_POST, file, *name); } return true; } |
