Skip to content

Commit 3561e45

Browse files
committed
Update builtin.{txt,jax}
1 parent c74ebc3 commit 3561e45

File tree

2 files changed

+30
-4
lines changed

2 files changed

+30
-4
lines changed

doc/builtin.jax

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Sep 23
1+
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Oct 08
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -248,6 +248,8 @@ getcharmod() 数値 修飾キーの状態を表す数値を取得
248248
getcharpos({expr}) リスト カーソル、マーク、その他のカーソル位置
249249
getcharsearch() 辞書 最後の文字検索を取得
250250
getcharstr([{expr}]) 文字列 ユーザーから1文字を取得する
251+
getcmdcomplpat() 文字列 現在のコマンドライン補完の補完パターン
252+
を返す
251253
getcmdcompltype() 文字列 現在のコマンドライン補完のタイプを返す
252254
getcmdline() 文字列 現在のコマンドライン入力を取得
253255
getcmdpos() 数値 コマンドラインのカーソル位置を取得
@@ -3961,14 +3963,26 @@ getcharstr([{expr}]) *getcharstr()*
39613963

39623964
戻り値の型: |String|
39633965

3966+
getcmdcomplpat() *getcmdcomplpat()*
3967+
現在のコマンドラインの補完パターンを返す。
3968+
コマンドラインが編集されている場合にのみ機能するため、
3969+
|c_CTRL-\_e| または |c_CTRL-R_=| を使用する必要がある。
3970+
|getcmdtype()|、|setcmdpos()|、|getcmdline()|、
3971+
|getcmdprompt()|、|getcmdcompltype()| および |setcmdline()| も
3972+
参照。
3973+
補完が定義されていない場合は空の文字列を返す。
3974+
3975+
戻り値の型: |String|
3976+
39643977

39653978
getcmdcompltype() *getcmdcompltype()*
39663979
現在のコマンドライン補完のタイプを返す。
39673980
コマンドラインが編集時にのみ動作するので、|c_CTRL-e| または
39683981
|c_CTRL-R_=| を使用する必要がある。
39693982
返す文字列については |:command-completion| を参照のこと。
39703983
|getcmdtype()|, |setcmdpos()|, |getcmdline()|,
3971-
|getcmdprompt()|, |setcmdline()| も参照。
3984+
|getcmdprompt()|, |getcmdcomplpat()| および |setcmdline()| も
3985+
参照。
39723986
補完が定義されていない場合は空文字列を返す。
39733987

39743988
戻り値の型: |String|

en/builtin.txt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2024 Sep 23
1+
*builtin.txt* For Vim version 9.1. Last change: 2024 Oct 08
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -230,6 +230,8 @@ getcharmod() Number modifiers for the last typed character
230230
getcharpos({expr}) List position of cursor, mark, etc.
231231
getcharsearch() Dict last character search
232232
getcharstr([{expr}]) String get one character from the user
233+
getcmdcomplpat() String return the completion pattern of the
234+
current command-line completion
233235
getcmdcompltype() String return the type of the current
234236
command-line completion
235237
getcmdline() String return the current command-line input
@@ -3973,14 +3975,24 @@ getcharstr([{expr}]) *getcharstr()*
39733975

39743976
Return type: |String|
39753977

3978+
getcmdcomplpat() *getcmdcomplpat()*
3979+
Return completion pattern of the current command-line.
3980+
Only works when the command line is being edited, thus
3981+
requires use of |c_CTRL-\_e| or |c_CTRL-R_=|.
3982+
Also see |getcmdtype()|, |setcmdpos()|, |getcmdline()|,
3983+
|getcmdprompt()|, |getcmdcompltype()| and |setcmdline()|.
3984+
Returns an empty string when completion is not defined.
3985+
3986+
Return type: |String|
3987+
39763988

39773989
getcmdcompltype() *getcmdcompltype()*
39783990
Return the type of the current command-line completion.
39793991
Only works when the command line is being edited, thus
39803992
requires use of |c_CTRL-\_e| or |c_CTRL-R_=|.
39813993
See |:command-completion| for the return string.
39823994
Also see |getcmdtype()|, |setcmdpos()|, |getcmdline()|,
3983-
|getcmdprompt()| and |setcmdline()|.
3995+
|getcmdprompt()|, |getcmdcomplpat()| and |setcmdline()|.
39843996
Returns an empty string when completion is not defined.
39853997

39863998
Return type: |String|

0 commit comments

Comments
 (0)