patch 9.1.0863: getcellpixels() can be further improved
Problem: getcellpixels() can be further improved
Solution: improve it further, add more tests
(mikoto2000)
closes: #16047
Signed-off-by: mikoto2000 <mikoto2000@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt
index 1c7814f..ab63681 100644
--- a/runtime/doc/builtin.txt
+++ b/runtime/doc/builtin.txt
@@ -1,4 +1,4 @@
-*builtin.txt* For Vim version 9.1. Last change: 2024 Nov 11
+*builtin.txt* For Vim version 9.1. Last change: 2024 Nov 14
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -3790,10 +3790,10 @@
getcellpixels() *getcellpixels()*
Returns a |List| of terminal cell pixel size.
List format is [xpixels, ypixels].
- Only works on Unix. For gVim and on other systems,
- returns [-1, -1].
+ Only works on (terminal) Unix. For gVim, on other systems and
+ on failure returns [].
- Return type: list<Number>
+ Return type: list<any>
getcellwidths() *getcellwidths()*