Skip to content

Commit 3e53e6d

Browse files
authored
Merge pull request #2151 from h-east/update-builtin
Update builtin.{txt,jax}
2 parents 1c639ec + c4251b9 commit 3e53e6d

File tree

2 files changed

+17
-13
lines changed

2 files changed

+17
-13
lines changed

doc/builtin.jax

Lines changed: 9 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 14
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -4320,6 +4320,7 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
43204320
messages |:messages|サブオプション
43214321
option オプション
43224322
packadd 任意パッケージ |pack-add| 名
4323+
retab |:retab| サブオプション
43234324
runtime |:runtime| 補完
43244325
scriptnames 読み込まれているスクリプト名 |:scriptnames|
43254326
shellcmd シェルコマンド
@@ -9208,12 +9209,13 @@ searchcount([{options}]) *searchcount()*
92089209
{options} についてはさらに以下を参照。
92099210

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

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

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

en/builtin.txt

Lines changed: 8 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 14
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -4333,6 +4333,7 @@ getcompletion({pat}, {type} [, {filtered}]) *getcompletion()*
43334333
messages |:messages| suboptions
43344334
option options
43354335
packadd optional package |pack-add| names
4336+
retab |:retab| suboptions
43364337
runtime |:runtime| completion
43374338
scriptnames sourced script names |:scriptnames|
43384339
shellcmd Shell command
@@ -9378,11 +9379,12 @@ searchcount([{options}]) *searchcount()*
93789379

93799380
To get the last search count when |n| or |N| was pressed, call
93809381
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`: >
9382+
wrong information because of 'maxsearchcount'.
9383+
If the count exceeded 'maxsearchcount', the result must be
9384+
'maxsearchcount' + 1. If you want to get correct information,
9385+
specify `recompute: 1`: >
93849386
9385-
" result == maxcount + 1 (100) when many matches
9387+
" result == 'maxsearchcount' + 1 when many matches
93869388
let result = searchcount(#{recompute: 0})
93879389
93889390
" Below returns correct result (recompute defaults
@@ -9469,7 +9471,7 @@ searchcount([{options}]) *searchcount()*
94699471
result. if search exceeded
94709472
total count, "total" value
94719473
becomes `maxcount + 1`
9472-
(default: 99)
9474+
(default: 'maxsearchcount')
94739475
pos |List| `[lnum, col, off]` value
94749476
when recomputing the result.
94759477
this changes "current" result

0 commit comments

Comments
 (0)