mirror of
https://github.com/neovim/neovim
synced 2025-07-15 16:51:49 +00:00
vim-patch:9.1.1538: tests: string options in gen_opt_test.vim not fully sorted (#34891)
Problem: tests: string options in gen_opt_test.vim aren't fully sorted.
Solution: Sort the string options alphabetically. Also make description
of 'maxsearchcount' start with lower-case for consistency with
other options, update documentation for searchcount().
closes: vim/vim#17720
7306e8fcdb
This commit is contained in:
@ -9368,11 +9368,12 @@ 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 999.
|
||||
If it exceeded 999 the result must be max count + 1 (1000). If
|
||||
you want to get correct information, specify `recompute: 1`: >vim
|
||||
wrong information because of 'maxsearchcount'.
|
||||
If the count exceeded 'maxsearchcount', the result must be
|
||||
'maxsearchcount' + 1. If you want to get correct information,
|
||||
specify `recompute: 1`: >vim
|
||||
|
||||
" result == maxcount + 1 (1000) when many matches
|
||||
" result == 'maxsearchcount' + 1 when many matches
|
||||
let result = searchcount(#{recompute: 0})
|
||||
|
||||
" Below returns correct result (recompute defaults
|
||||
@ -9459,7 +9460,7 @@ M.funcs = {
|
||||
result. if search exceeded
|
||||
total count, "total" value
|
||||
becomes `maxcount + 1`
|
||||
(default: 0)
|
||||
(default: 'maxsearchcount')
|
||||
pos |List| `[lnum, col, off]` value
|
||||
when recomputing the result.
|
||||
this changes "current" result
|
||||
|
Reference in New Issue
Block a user