feat(search): increase MAX_COUNT to 999

Problem: "99 searchcount ought to be enough for anyone."

Solution: Increase `SEARCH_STAT_DEF_MAX_COUNT` to 999, which I'm sure
will suffice for the next twenty years.

Co-authored-by: Sean Dewar <6256228+seandewar@users.noreply.github.com>
This commit is contained in:
Christian Clason
2025-05-10 12:26:56 +02:00
committed by Christian Clason
parent 9784bc1346
commit c9d8468020
8 changed files with 54 additions and 40 deletions

View File

@@ -9319,11 +9319,11 @@ M.funcs = {
To get the last search count when |n| or |N| was pressed, call
this function with `recompute: 0` . This sometimes returns
wrong information because |n| and |N|'s maximum count is 99.
If it exceeded 99 the result must be max count + 1 (100). If
wrong information because |n| and |N|'s maximum count is 999.
If it exceeded 999 the result must be max count + 1 (1000). If
you want to get correct information, specify `recompute: 1`: >vim
" result == maxcount + 1 (100) when many matches
" result == maxcount + 1 (1000) when many matches
let result = searchcount(#{recompute: 0})
" Below returns correct result (recompute defaults