From fe583b1e5987fbfdb5f2141c133dbff9665ed301 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 21 Dec 2023 16:59:26 +0100 Subject: 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 Signed-off-by: Christian Brabandt --- runtime/doc/message.txt | 4 +--- runtime/doc/options.txt | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/message.txt b/runtime/doc/message.txt index f8a9fdfa60..92a8e3cda4 100644 --- a/runtime/doc/message.txt +++ b/runtime/doc/message.txt @@ -1,4 +1,4 @@ -*message.txt* For Vim version 9.0. Last change: 2023 Nov 08 +*message.txt* For Vim version 9.0. Last change: 2023 Dec 20 VIM REFERENCE MANUAL by Bram Moolenaar @@ -135,8 +135,6 @@ This happens when an Ex command executes an Ex command that executes an Ex command, etc. The limit is 200 or the value of 'maxfuncdepth', whatever is larger. When it's more there probably is an endless loop. Probably a |:execute| or |:source| command is involved. -Can also happen with a recursive callback function (|job-callback|). -A limit of 20 is used here. *E254* Cannot allocate color {name} ~ diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 54ee56f0b5..34059e0ea6 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -1,4 +1,4 @@ -*options.txt* For Vim version 9.0. Last change: 2023 Dec 16 +*options.txt* For Vim version 9.0. Last change: 2023 Dec 20 VIM REFERENCE MANUAL by Bram Moolenaar @@ -5477,6 +5477,7 @@ A jump table for the options with a short description can be found at |Q_op|. Increasing this limit above 200 also changes the maximum for Ex command recursion, see |E169|. See also |:function|. + Also used for maximum depth of callback functions. *'maxmapdepth'* *'mmd'* *E223* 'maxmapdepth' 'mmd' number (default 1000) -- cgit v1.2.3