Skip to content

Commit 57d9cf4

Browse files
authored
Merge pull request #1837 from h-east/update-builtin
Update builtin.{txt,jax}
2 parents 0fb5c4a + 03fa94f commit 57d9cf4

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

doc/builtin.jax

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Nov 14
1+
*builtin.txt* For Vim バージョン 9.1. Last change: 2024 Nov 18
22

33

44
VIMリファレンスマニュアル by Bram Moolenaar
@@ -3788,8 +3788,13 @@ getbufvar({buf}, {varname} [, {def}]) *getbufvar()*
37883788
getcellpixels() *getcellpixels()*
37893789
端末のセルのピクセルサイズの |List| を返す。
37903790
リストの形式は [xpixels, ypixels] である。
3791-
Unix (の端末) でのみ動作する。gVim の場合や他のシステムの場合
3792-
および失敗した場合は [] を返す。
3791+
3792+
Unix (端末と gVim) および Windows (gVim のみ) でのみ動作する。
3793+
他のシステムまたは失敗した場合は [] を返す。
3794+
Note 端末によって異なる場合があることに注意。macOS では、シス
3795+
テムの Terminal.app はポイント単位でサイズを返す (Retina スケー
3796+
リング前)。一方、サードパーティの端末は生のピクセルサイズを返
3797+
す (Retina スケーリング後)。
37933798

37943799
戻り値の型: list<any>
37953800

en/builtin.txt

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*builtin.txt* For Vim version 9.1. Last change: 2024 Nov 14
1+
*builtin.txt* For Vim version 9.1. Last change: 2024 Nov 18
22

33

44
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3790,8 +3790,13 @@ getbufvar({buf}, {varname} [, {def}]) *getbufvar()*
37903790
getcellpixels() *getcellpixels()*
37913791
Returns a |List| of terminal cell pixel size.
37923792
List format is [xpixels, ypixels].
3793-
Only works on (terminal) Unix. For gVim, on other systems and
3794-
on failure returns [].
3793+
3794+
Only works on Unix (terminal and gVim) and Windows (gVim only).
3795+
Returns [] on other systems or on failure.
3796+
Note that there could be variations across different terminals.
3797+
On macOS, system Terminal.app returns sizes in points (before
3798+
Retina scaling), whereas third-party terminals return raw pixel
3799+
sizes (post Retina scaling).
37953800

37963801
Return type: list<any>
37973802

0 commit comments

Comments
 (0)