diff options
| author | zeertzjq <zeertzjq@outlook.com> | 2025-07-12 06:56:43 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-11 22:56:43 +0000 |
| commit | d4074b812d0bdd4eb89f4f3dfcb8854cdd9e95a4 (patch) | |
| tree | 701904b2d12053c461b48852a511806973cdd968 /runtime/lua/vim/_meta/vimfn.lua | |
| parent | 7f5b5d34cfeb9428b9a213cb75646f1a82f3c60f (diff) | |
| download | rneovim-d4074b812d0bdd4eb89f4f3dfcb8854cdd9e95a4.tar.gz rneovim-d4074b812d0bdd4eb89f4f3dfcb8854cdd9e95a4.tar.bz2 rneovim-d4074b812d0bdd4eb89f4f3dfcb8854cdd9e95a4.zip | |
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
https://github.com/vim/vim/commit/7306e8fcdb6fd17276b6aafb23a522cefecb5857
Diffstat (limited to 'runtime/lua/vim/_meta/vimfn.lua')
| -rw-r--r-- | runtime/lua/vim/_meta/vimfn.lua | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/runtime/lua/vim/_meta/vimfn.lua b/runtime/lua/vim/_meta/vimfn.lua index 2fd2aa82fe..e5f0bdf014 100644 --- a/runtime/lua/vim/_meta/vimfn.lua +++ b/runtime/lua/vim/_meta/vimfn.lua @@ -7698,11 +7698,12 @@ function vim.fn.search(pattern, flags, stopline, timeout, skip) end --- --- 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 @@ -7789,7 +7790,7 @@ function vim.fn.search(pattern, flags, stopline, timeout, skip) end --- 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 |