diff options
Diffstat (limited to 'src/nvim/eval.c')
-rw-r--r-- | src/nvim/eval.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/nvim/eval.c b/src/nvim/eval.c index 155b816b33..73bfcd4291 100644 --- a/src/nvim/eval.c +++ b/src/nvim/eval.c @@ -21263,7 +21263,7 @@ void call_user_func(ufunc_T *fp, int argcount, typval_T *argvars, bool func_not_yet_profiling_but_should = do_profiling_yes - && !fp->uf_profiling && has_profiling(FALSE, fp->uf_name, NULL); + && !fp->uf_profiling && has_profiling(false, fp->uf_name, NULL); if (func_not_yet_profiling_but_should) func_do_profile(fp); @@ -21355,8 +21355,9 @@ void call_user_func(ufunc_T *fp, int argcount, typval_T *argvars, sourcing_name = save_sourcing_name; sourcing_lnum = save_sourcing_lnum; current_SID = save_current_SID; - if (do_profiling_yes) + if (do_profiling_yes) { script_prof_restore(&wait_start); + } if (p_verbose >= 12 && sourcing_name != NULL) { ++no_wait_return; |