mirror of
https://github.com/vim/vim
synced 2025-07-16 01:01:58 +00:00
patch 9.1.0854: cannot get terminal cell size
Problem: cannot get terminal cell size Solution: add getcellpixels() function to return xpixel * ypixel cell size on terminal Unix (mikoto2000) closes: #16004 Signed-off-by: mikoto2000 <mikoto2000@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
6fbf63de86
commit
1083cae709
@ -2077,6 +2077,14 @@ static funcentry_T global_functions[] =
|
||||
ret_string, f_getbufoneline},
|
||||
{"getbufvar", 2, 3, FEARG_1, arg3_buffer_string_any,
|
||||
ret_any, f_getbufvar},
|
||||
{"getcellpixels", 0, 0, 0, NULL,
|
||||
ret_list_any,
|
||||
#if (defined(UNIX) || defined(VMS)) && (defined(FEAT_EVAL) || defined(PROTO))
|
||||
f_getcellpixels
|
||||
#else
|
||||
NULL
|
||||
#endif
|
||||
},
|
||||
{"getcellwidths", 0, 0, 0, NULL,
|
||||
ret_list_any, f_getcellwidths},
|
||||
{"getchangelist", 0, 1, FEARG_1, arg1_buffer,
|
||||
|
Reference in New Issue
Block a user