Skip to content

Commit 21cf528

Browse files
committed
Update builtin.{txt,jax}
1 parent ffb6745 commit 21cf528

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

doc/builtin.jax

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Jul 06
1+
*builtin.txt* For Vim バージョン 9.1. Last change: 2025 Jul 11
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -9208,12 +9208,13 @@ searchcount([{options}]) *searchcount()*
92089208
{options} についてはさらに以下を参照。
92099209

92109210
|n| や |N| を押下したときの最後の検索カウントを取るには、この
9211-
関数を `recompute: 0` で呼ぶ。|n| と |N| の最大カウントが 99
9212-
であるため、時として正しくない情報を返すことがある。もし 99 を
9213-
超える時は結果が最大カウント+1(100)でなくてはならない。もし正
9214-
しい情報を取得したいのであれば、`recompute: 1` を指定する: >
9211+
関数を `recompute: 0` で呼ぶ。これは 'maxsearchcount' が原因で
9212+
間違った情報を返すことがある。
9213+
カウントが 'maxsearchcount' を超えた場合、結果は
9214+
'maxsearchcount' + 1 になる。正しい情報を取得したい場合は、
9215+
`recompute: 1` を指定する: >
92159216

9216-
" 多量にマッチする場合、 result == maxcount + 1 (100)
9217+
" 多量にマッチする場合、result == 'maxsearchcount' + 1
92179218
" になる
92189219
let result = searchcount(#{recompute: 0})
92199220

@@ -9300,7 +9301,7 @@ searchcount([{options}]) *searchcount()*
93009301
もし検索の総計カウントが到達し
93019302
たら "total" の値が maxcount +
93029303
1 になる
9303-
(デフォルト: 99)
9304+
(デフォルト: 'maxsearchcount')
93049305
pos |List| `[lnum, col, off]` 値
93059306
再計算の値。
93069307
"current" の結果の値を更新する。

en/builtin.txt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -9378,11 +9378,12 @@ searchcount([{options}]) *searchcount()*
93789378

93799379
To get the last search count when |n| or |N| was pressed, call
93809380
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`: >
93849385
9385-
" result == maxcount + 1 (100) when many matches
9386+
" result == 'maxsearchcount' + 1 when many matches
93869387
let result = searchcount(#{recompute: 0})
93879388
93889389
" Below returns correct result (recompute defaults
@@ -9469,7 +9470,7 @@ searchcount([{options}]) *searchcount()*
94699470
result. if search exceeded
94709471
total count, "total" value
94719472
becomes `maxcount + 1`
9472-
(default: 99)
9473+
(default: 'maxsearchcount')
94739474
pos |List| `[lnum, col, off]` value
94749475
when recomputing the result.
94759476
this changes "current" result

0 commit comments

Comments
 (0)