Skip to content

Commit 0b82a98

Browse files
committed
Update getcellpixels() docs to point out the delay in MacVim GUI
macvim-dev#1554 added support for `getcellpixels()`, but it has a quirk in MacVim in that it has a slight delay due to MacVim's asynchronous nature. Make sure the documentation reflects that to avoid surprises.
1 parent 347d8c7 commit 0b82a98

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runtime/doc/builtin.txt

+2
Original file line numberDiff line numberDiff line change
@@ -3885,6 +3885,8 @@ getcellpixels() *getcellpixels()*
38853885
On macOS, system Terminal.app returns sizes in points (before
38863886
Retina scaling), whereas third-party terminals return raw pixel
38873887
sizes (post Retina scaling).
3888+
In MacVim, there is a small delay after startup or changing
3889+
'guifont' before this will return the updated values.
38883890

38893891
Return type: list<any>
38903892

0 commit comments

Comments
 (0)