aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nvim/eval/userfunc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/eval/userfunc.c b/src/nvim/eval/userfunc.c
index 6e3c6c592a..ae8557a8bc 100644
--- a/src/nvim/eval/userfunc.c
+++ b/src/nvim/eval/userfunc.c
@@ -613,10 +613,10 @@ static void cleanup_function_call(funccall_T *fc)
if (++made_copy == 10000) {
// We have made a lot of copies. This can happen when
// repetitively calling a function that creates a reference to
- // itself somehow. Call the garbage collector here to avoid using
+ // itself somehow. Call the garbage collector soon to avoid using
// too much memory.
made_copy = 0;
- (void)garbage_collect(false);
+ want_garbage_collect = true;
}
}
}