Mercurial > vim
comparison runtime/doc/options.txt @ 33764:f2445075dbeb v9.0.2103
patch 9.0.2103: recursive callback may cause issues on some archs
Commit: https://github.com/vim/vim/commit/2076463e383901cef44685aaf4b63e4306444f9e
Author: Christian Brabandt <cb@256bit.org>
Date: Sun Nov 12 16:59:29 2023 +0100
patch 9.0.2103: recursive callback may cause issues on some archs
Problem: recursive callback may cause issues on some archs
Solution: Decrease the limit drastically to 20
Recursive callback limit causes problems on some architectures
Since commit 47510f3d6598a1218958c03ed11337a43b73f48d we have a test
that causes a recursive popup callback function to be executed. However
it seems the current limit of 'maxfuncdepth' option value is still too
recursive for some 32bit architectures (e.g. 32bit ARM).
So instead of allowing a default limit of 100 (default value for
'maxfuncdepth'), let's reduce this limit to 20. I don't think there is a
use case where one would need such a high recursive callback limit and a
limit of 20 seems reasonable (although it is currently hard-coded).
closes: #13495
closes: #13502
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 12 Nov 2023 17:15:03 +0100 |
parents | a141a8fb99b1 |
children | 199e0d672feb |
comparison
equal
deleted
inserted
replaced
33763:c8089a29bcc4 | 33764:f2445075dbeb |
---|---|
5484 more depth, set 'maxfuncdepth' to a bigger number. But this will use | 5484 more depth, set 'maxfuncdepth' to a bigger number. But this will use |
5485 more memory, there is the danger of failing when memory is exhausted. | 5485 more memory, there is the danger of failing when memory is exhausted. |
5486 Increasing this limit above 200 also changes the maximum for Ex | 5486 Increasing this limit above 200 also changes the maximum for Ex |
5487 command recursion, see |E169|. | 5487 command recursion, see |E169|. |
5488 See also |:function|. | 5488 See also |:function|. |
5489 Also used for maximum depth of callback functions. | |
5490 | 5489 |
5491 *'maxmapdepth'* *'mmd'* *E223* | 5490 *'maxmapdepth'* *'mmd'* *E223* |
5492 'maxmapdepth' 'mmd' number (default 1000) | 5491 'maxmapdepth' 'mmd' number (default 1000) |
5493 global | 5492 global |
5494 Maximum number of times a mapping is done without resulting in a | 5493 Maximum number of times a mapping is done without resulting in a |