patch 9.1.1535: the maximum search count uses hard-coded value 99

Problem:  The maximum search count uses a hard-coded value of 99
          (Andres Monge, Joschua Kesper)
Solution: Make it configurable using the 'maxsearchcount' option.

related: #8855
fixes: #17527
closes: #17695

Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Christian Brabandt
2025-07-10 20:34:41 +02:00
parent bda2e4eb16
commit b7b7fa04bf
14 changed files with 259 additions and 45 deletions

View File

@ -1733,6 +1733,9 @@ static struct vimoption options[] =
(char_u *)&p_mmt, PV_NONE, NULL, NULL,
{(char_u *)DFLT_MAXMEMTOT, (char_u *)0L}
SCTX_INIT},
{"maxsearchcount", "msc", P_NUM|P_VI_DEF,
(char_u *)&p_msc, PV_NONE, did_set_maxsearchcount, NULL,
{(char_u *)99L, (char_u *)0L} SCTX_INIT},
{"menuitems", "mis", P_NUM|P_VI_DEF,
#ifdef FEAT_MENU
(char_u *)&p_mis, PV_NONE, NULL, NULL,