|
1 | | -*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 06 |
| 1 | +*builtin.txt* For Vim version 9.1. Last change: 2025 Jul 11 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -9378,11 +9378,12 @@ searchcount([{options}]) *searchcount()* |
9378 | 9378 |
|
9379 | 9379 | To get the last search count when |n| or |N| was pressed, call |
9380 | 9380 | this function with `recompute: 0` . This sometimes returns |
9381 | | - wrong information because |n| and |N|'s maximum count is 99. |
9382 | | - If it exceeded 99 the result must be max count + 1 (100). If |
9383 | | - you want to get correct information, specify `recompute: 1`: > |
| 9381 | + wrong information because of 'maxsearchcount'. |
| 9382 | + If the count exceeded 'maxsearchcount', the result must be |
| 9383 | + 'maxsearchcount' + 1. If you want to get correct information, |
| 9384 | + specify `recompute: 1`: > |
9384 | 9385 |
|
9385 | | - " result == maxcount + 1 (100) when many matches |
| 9386 | + " result == 'maxsearchcount' + 1 when many matches |
9386 | 9387 | let result = searchcount(#{recompute: 0}) |
9387 | 9388 |
|
9388 | 9389 | " Below returns correct result (recompute defaults |
@@ -9469,7 +9470,7 @@ searchcount([{options}]) *searchcount()* |
9469 | 9470 | result. if search exceeded |
9470 | 9471 | total count, "total" value |
9471 | 9472 | becomes `maxcount + 1` |
9472 | | - (default: 99) |
| 9473 | + (default: 'maxsearchcount') |
9473 | 9474 | pos |List| `[lnum, col, off]` value |
9474 | 9475 | when recomputing the result. |
9475 | 9476 | this changes "current" result |
|
0 commit comments