mirror of
https://github.com/neovim/neovim.git
synced 2025-10-04 17:06:30 +00:00
vim-patch:9.1.1535: the maximum search count uses hard-coded value 99 (#34873)
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: vim/vim#8855
fixes: vim/vim#17527
closes: vim/vim#17695
b7b7fa04bf
Co-authored-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
@@ -5655,6 +5655,22 @@ local options = {
|
||||
type = 'number',
|
||||
varname = 'p_mmp',
|
||||
},
|
||||
{
|
||||
abbreviation = 'msc',
|
||||
defaults = 999,
|
||||
desc = [=[
|
||||
Maximum number of matches shown for the search count status |shm-S|
|
||||
When the number of matches exceeds this value, Vim shows ">" instead
|
||||
of the exact count to keep searching fast.
|
||||
Note: larger values may impact performance.
|
||||
The value must be between 1 and 9999.
|
||||
]=],
|
||||
full_name = 'maxsearchcount',
|
||||
scope = { 'global' },
|
||||
short_desc = N_('maximum number for the search count feature'),
|
||||
type = 'number',
|
||||
varname = 'p_msc',
|
||||
},
|
||||
{
|
||||
abbreviation = 'mis',
|
||||
defaults = 25,
|
||||
@@ -7884,7 +7900,8 @@ local options = {
|
||||
is shown), the "search hit BOTTOM, continuing at TOP" and
|
||||
"search hit TOP, continuing at BOTTOM" messages are only
|
||||
indicated by a "W" (Mnemonic: Wrapped) letter before the
|
||||
search count statistics.
|
||||
search count statistics. The maximum limit can be set with
|
||||
the 'maxsearchcount' option.
|
||||
|
||||
This gives you the opportunity to avoid that a change between buffers
|
||||
requires you to hit <Enter>, but still gives as useful a message as
|
||||
|
Reference in New Issue
Block a user