diff --git a/doc/builtin.jax b/doc/builtin.jax index 9e45599d2..396341fd6 100644 --- a/doc/builtin.jax +++ b/doc/builtin.jax @@ -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 @@ -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文字を取得する @@ -3784,6 +3785,15 @@ getbufvar({buf}, {varname} [, {def}]) *getbufvar()* 戻り値の型: any。{varname} による +getcellpixels() *getcellpixels()* + 端末のセルのピクセルサイズの |List| を返す。 + リストの形式は [xpixels, ypixels] である。 + Unix (の端末) でのみ動作する。gVim の場合や他のシステムの場合 + および失敗した場合は [] を返す。 + + 戻り値の型: list + + getcellwidths() *getcellwidths()* |setcellwidths()| によって上書きされた文字範囲のセル幅の |List| を返す。形式は |setcellwidths()| の引数と同じである。セ diff --git a/en/builtin.txt b/en/builtin.txt index 67f447d7d..ab6368198 100644 --- a/en/builtin.txt +++ b/en/builtin.txt @@ -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 @@ -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 @@ -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]. + Only works on (terminal) Unix. For gVim, on other systems and + on failure returns []. + + Return type: list + + getcellwidths() *getcellwidths()* Returns a |List| of cell widths of character ranges overridden by |setcellwidths()|. The format is equal to the argument of