diff options
author | Matthieu Coudron <mattator@gmail.com> | 2020-05-25 14:01:36 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 14:01:36 +0200 |
commit | 8c588246a505e4fcd3d28e6d1f670e834c918529 (patch) | |
tree | b1ffbf9bc47870e4b86b37b14e9d638158e0014e /src/nvim/fileio.c | |
parent | b996205969d5c56e9110158e48cef559e9de0969 (diff) | |
parent | a532fb2cf425ef15dbbbee6dd00d1401c90aebae (diff) | |
download | rneovim-8c588246a505e4fcd3d28e6d1f670e834c918529.tar.gz rneovim-8c588246a505e4fcd3d28e6d1f670e834c918529.tar.bz2 rneovim-8c588246a505e4fcd3d28e6d1f670e834c918529.zip |
Merge pull request #10905 from erw7/vim-8.1.0475
vim-patch:8.1.{475,800,868,1007,1027,1031,1033,1037,1058,1435,1484,1485}
Diffstat (limited to 'src/nvim/fileio.c')
-rw-r--r-- | src/nvim/fileio.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nvim/fileio.c b/src/nvim/fileio.c index 2335aba6dd..f29304867a 100644 --- a/src/nvim/fileio.c +++ b/src/nvim/fileio.c @@ -6736,7 +6736,6 @@ static bool apply_autocmds_group(event_T event, char_u *fname, char_u *fname_io, static int nesting = 0; AutoPatCmd patcmd; AutoPat *ap; - void *save_funccalp; char_u *save_cmdarg; long save_cmdbang; static int filechangeshell_busy = FALSE; @@ -6926,8 +6925,9 @@ static bool apply_autocmds_group(event_T event, char_u *fname, char_u *fname_io, if (do_profiling == PROF_YES) prof_child_enter(&wait_time); /* doesn't count for the caller itself */ - /* Don't use local function variables, if called from a function */ - save_funccalp = save_funccal(); + // Don't use local function variables, if called from a function. + funccal_entry_T funccal_entry; + save_funccal(&funccal_entry); /* * When starting to execute autocommands, save the search patterns. @@ -7016,9 +7016,10 @@ static bool apply_autocmds_group(event_T event, char_u *fname, char_u *fname_io, autocmd_bufnr = save_autocmd_bufnr; autocmd_match = save_autocmd_match; current_sctx = save_current_sctx; - restore_funccal(save_funccalp); - if (do_profiling == PROF_YES) + restore_funccal(); + if (do_profiling == PROF_YES) { prof_child_exit(&wait_time); + } KeyTyped = save_KeyTyped; xfree(fname); xfree(sfname); |