aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/context.c
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-08-12 13:45:33 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-08-12 14:15:03 +0800
commita93d29589ae1aab9f5fff11fccbe3ed14cb089ce (patch)
tree26815d394348a994820171a9cbc0f27678ff2e89 /src/nvim/context.c
parentc7ca94ba7f7a76caf51ed62b521f04c97c6aeed5 (diff)
downloadrneovim-a93d29589ae1aab9f5fff11fccbe3ed14cb089ce.tar.gz
rneovim-a93d29589ae1aab9f5fff11fccbe3ed14cb089ce.tar.bz2
rneovim-a93d29589ae1aab9f5fff11fccbe3ed14cb089ce.zip
vim-patch:8.1.1689: profiling code is spread out
Problem: Profiling code is spread out. Solution: Move more profiling code to profiler.c. (Yegappan Lakshmanan, closes vim/vim#4668) https://github.com/vim/vim/commit/660a10ad41c14363326f83451c3c425201923119
Diffstat (limited to 'src/nvim/context.c')
-rw-r--r--src/nvim/context.c3
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);