diff options
author | Daniel Hahler <git@thequod.de> | 2019-06-08 13:04:06 +0200 |
---|---|---|
committer | Daniel Hahler <git@thequod.de> | 2019-06-08 16:40:32 +0200 |
commit | 7823b357812b06da7348a5b4f5a66afae8f1f71c (patch) | |
tree | 90b891c43b9e357f6ae5289ad36764997eb8eba7 /src/nvim/eval/typval.h | |
parent | b398b1eeddb2118e5e00e2341d80626496488021 (diff) | |
download | rneovim-7823b357812b06da7348a5b4f5a66afae8f1f71c.tar.gz rneovim-7823b357812b06da7348a5b4f5a66afae8f1f71c.tar.bz2 rneovim-7823b357812b06da7348a5b4f5a66afae8f1f71c.zip |
vim-patch:8.1.0130: ":profdel func" does not work if func was called already
Problem: ":profdel func" does not work if func was called already.
(Dominique Pelle)
Solution: Reset uf_profiling and add a flag to indicate initialization was
done.
https://github.com/vim/vim/commit/ad6480961080f80a455b2394f27b02935a2ded52
Diffstat (limited to 'src/nvim/eval/typval.h')
-rw-r--r-- | src/nvim/eval/typval.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nvim/eval/typval.h b/src/nvim/eval/typval.h index e99289c430..5c0f872b38 100644 --- a/src/nvim/eval/typval.h +++ b/src/nvim/eval/typval.h @@ -260,6 +260,7 @@ struct ufunc { garray_T uf_args; ///< arguments garray_T uf_lines; ///< function lines int uf_profiling; ///< true when func is being profiled + int uf_prof_initialized; // Profiling the function as a whole. int uf_tm_count; ///< nr of calls proftime_T uf_tm_total; ///< time spent in function + children |