summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_meta/options.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2025-07-11 09:17:05 +0800
committerGitHub <noreply@github.com>2025-07-11 09:17:05 +0800
commit00f8f94d5b06e5d464a4d5548dc6a91bd2dfdd64 (patch)
tree92f5e10cdf5655dc6c25ba10ff8db3509caac98e /runtime/lua/vim/_meta/options.lua
parent54cde0674b41ffd84a97b8e8f93167c00ef26c96 (diff)
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 https://github.com/vim/vim/commit/b7b7fa04bf79f2f13ed6e789b76262753da31dde Co-authored-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/lua/vim/_meta/options.lua')
-rw-r--r--runtime/lua/vim/_meta/options.lua15
1 files changed, 14 insertions, 1 deletions
diff --git a/runtime/lua/vim/_meta/options.lua b/runtime/lua/vim/_meta/options.lua
index d5db159855..7e13ee6598 100644
--- a/runtime/lua/vim/_meta/options.lua
+++ b/runtime/lua/vim/_meta/options.lua
@@ -4351,6 +4351,18 @@ vim.o.mmp = vim.o.maxmempattern
vim.go.maxmempattern = vim.o.maxmempattern
vim.go.mmp = vim.go.maxmempattern
+--- 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.
+---
+--- @type integer
+vim.o.maxsearchcount = 999
+vim.o.msc = vim.o.maxsearchcount
+vim.go.maxsearchcount = vim.o.maxsearchcount
+vim.go.msc = vim.go.maxsearchcount
+
--- Maximum number of items to use in a menu. Used for menus that are
--- generated from a list of items, e.g., the Buffers menu. Changing this
--- option has no direct effect, the menu must be refreshed first.
@@ -6004,7 +6016,8 @@ vim.bo.sw = vim.bo.shiftwidth
--- 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