mirror of
https://github.com/vim/vim.git
synced 2025-09-25 03:54:15 -04:00
patch 9.0.2183: Maximum callback depth is not configurable
Problem: Maximum callback depth is not configurable. Solution: Revert patch 9.0.2103. Set 'maxfuncdepth' in test. (zeertzjq) fixes: #13732 closes: #13736 Signed-off-by: zeertzjq <zeertzjq@outlook.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
632b38b45f
commit
fe583b1e59
@@ -14,9 +14,6 @@
|
||||
#include "vim.h"
|
||||
|
||||
#if defined(FEAT_EVAL) || defined(PROTO)
|
||||
|
||||
#define MAX_CALLBACK_DEPTH 20
|
||||
|
||||
/*
|
||||
* All user-defined functions are found in this hashtable.
|
||||
*/
|
||||
@@ -3603,7 +3600,7 @@ call_callback(
|
||||
if (callback->cb_name == NULL || *callback->cb_name == NUL)
|
||||
return FAIL;
|
||||
|
||||
if (callback_depth > MAX_CALLBACK_DEPTH)
|
||||
if (callback_depth > p_mfd)
|
||||
{
|
||||
emsg(_(e_command_too_recursive));
|
||||
return FAIL;
|
||||
|
Reference in New Issue
Block a user