Skip to content
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
11 changes: 8 additions & 3 deletions 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 14
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Nov 18


VIMリファレンスマニュアル by Bram Moolenaar
Expand Down Expand Up @@ -3788,8 +3788,13 @@ getbufvar({buf}, {varname} [, {def}]) *getbufvar()*
getcellpixels() *getcellpixels()*
端末のセルのピクセルサイズの |List| を返す。
リストの形式は [xpixels, ypixels] である。
Unix (の端末) でのみ動作する。gVim の場合や他のシステムの場合
および失敗した場合は [] を返す。

Unix (端末と gVim) および Windows (gVim のみ) でのみ動作する。
他のシステムまたは失敗した場合は [] を返す。
Note 端末によって異なる場合があることに注意。macOS では、シス
テムの Terminal.app はポイント単位でサイズを返す (Retina スケー
リング前)。一方、サードパーティの端末は生のピクセルサイズを返
す (Retina スケーリング後)。

戻り値の型: list<any>

Expand Down
11 changes: 8 additions & 3 deletions 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 14
*builtin.txt* For Vim version 9.1. Last change: 2024 Nov 18


VIM REFERENCE MANUAL by Bram Moolenaar
Expand Down Expand Up @@ -3790,8 +3790,13 @@ getbufvar({buf}, {varname} [, {def}]) *getbufvar()*
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 [].

Only works on Unix (terminal and gVim) and Windows (gVim only).
Returns [] on other systems or on failure.
Note that there could be variations across different terminals.
On macOS, system Terminal.app returns sizes in points (before
Retina scaling), whereas third-party terminals return raw pixel
sizes (post Retina scaling).

Return type: list<any>

Expand Down