Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update builtin.{txt,jax} #1822

Merged
merged 2 commits into from
Nov 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion doc/builtin.jax
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Nov 10
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Nov 14


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -241,6 +241,7 @@ getbufline({buf}, {lnum} [, {end}])
getbufoneline({buf}, {lnum}) 文字列 バッファ{buf}の{lnum}行目
getbufvar({buf}, {varname} [, {def}])
任意 バッファ{buf}の変数 {varname}
getcellpixels() リスト 文字のセルのピクセルサイズを取得する
getcellwidths() リスト 文字のセル幅の上書き設定を取得
getchangelist([{buf}]) リスト 変更リスト要素のリスト
getchar([{expr}]) 数値/文字列 ユーザーから1文字を取得する
Expand Down Expand Up @@ -3784,6 +3785,15 @@ getbufvar({buf}, {varname} [, {def}]) *getbufvar()*
戻り値の型: any。{varname} による


getcellpixels() *getcellpixels()*
端末のセルのピクセルサイズの |List| を返す。
リストの形式は [xpixels, ypixels] である。
Unix (の端末) でのみ動作する。gVim の場合や他のシステムの場合
および失敗した場合は [] を返す。

戻り値の型: list<any>


getcellwidths() *getcellwidths()*
|setcellwidths()| によって上書きされた文字範囲のセル幅の
|List| を返す。形式は |setcellwidths()| の引数と同じである。セ
Expand Down
12 changes: 11 additions & 1 deletion en/builtin.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
*builtin.txt* For Vim version 9.1. Last change: 2024 Nov 10
*builtin.txt* For Vim version 9.1. Last change: 2024 Nov 14


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -222,6 +222,7 @@ getbufline({buf}, {lnum} [, {end}])
getbufoneline({buf}, {lnum}) String line {lnum} of buffer {buf}
getbufvar({buf}, {varname} [, {def}])
any variable {varname} in buffer {buf}
getcellpixels() List get character cell pixel size
getcellwidths() List get character cell width overrides
getchangelist([{buf}]) List list of change list items
getchar([{expr}]) Number or String
Expand Down Expand Up @@ -3786,6 +3787,15 @@ getbufvar({buf}, {varname} [, {def}]) *getbufvar()*
Return type: any, depending on {varname}


getcellpixels() *getcellpixels()*
Returns a |List| of terminal cell pixel size.
List format is [xpixels, ypixels].
h-east marked this conversation as resolved.
Show resolved Hide resolved
Only works on (terminal) Unix. For gVim, on other systems and
on failure returns [].
Comment on lines +3793 to +3794
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この行、もう少し分かり良い感じにできそう。特に後ろの文。
誰か、提案頼みます。


Return type: list<any>


getcellwidths() *getcellwidths()*
Returns a |List| of cell widths of character ranges overridden
by |setcellwidths()|. The format is equal to the argument of
Expand Down