diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-08-12 14:39:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-12 14:39:47 +0800 |
commit | d4f5e0db3c61a316013cc17739f6e8abc1c5907b (patch) | |
tree | 26815d394348a994820171a9cbc0f27678ff2e89 /src/nvim/context.c | |
parent | 0d9e09bf670724caec9939a7165e25c4abc40291 (diff) | |
parent | a93d29589ae1aab9f5fff11fccbe3ed14cb089ce (diff) | |
download | rneovim-d4f5e0db3c61a316013cc17739f6e8abc1c5907b.tar.gz rneovim-d4f5e0db3c61a316013cc17739f6e8abc1c5907b.tar.bz2 rneovim-d4f5e0db3c61a316013cc17739f6e8abc1c5907b.zip |
Merge pull request #19733 from zeertzjq/vim-8.1.1684
vim-patch:8.1.{1684,1689}: profiling code is spread out
Diffstat (limited to 'src/nvim/context.c')
-rw-r--r-- | src/nvim/context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/context.c b/src/nvim/context.c index db26667009..e3ae9355bf 100644 --- a/src/nvim/context.c +++ b/src/nvim/context.c @@ -9,6 +9,7 @@ #include "nvim/api/vimscript.h" #include "nvim/context.h" #include "nvim/eval/encode.h" +#include "nvim/eval/userfunc.h" #include "nvim/ex_docmd.h" #include "nvim/option.h" #include "nvim/shada.h" @@ -249,7 +250,7 @@ static inline void ctx_save_funcs(Context *ctx, bool scriptonly) ctx->funcs = (Array)ARRAY_DICT_INIT; Error err = ERROR_INIT; - HASHTAB_ITER(&func_hashtab, hi, { + HASHTAB_ITER(func_tbl_get(), hi, { const char_u *const name = hi->hi_key; bool islambda = (STRNCMP(name, "<lambda>", 8) == 0); bool isscript = (name[0] == K_SPECIAL); |