feat(api)!: change return type of nvim_win_text_height to Dict (#24365)

This commit is contained in:
zeertzjq
2023-07-16 18:02:53 +08:00
committed by GitHub
parent 622ae2f53e
commit abe39f2b24
6 changed files with 132 additions and 109 deletions

View File

@@ -2989,7 +2989,9 @@ nvim_win_text_height({window}, {*opts}) *nvim_win_text_height()*
omitted include the whole line.
Return: ~
The number of screen lines that the range of text occupy.
Dictionary containing text height information, with these keys:
• all: The total number of screen lines occupied by the range.
• fill: The number of diff filler or virtual lines among them.
See also: ~
• |virtcol()| for text width.

View File

@@ -99,8 +99,8 @@ The following new APIs and features were added.
• |vim.system()| for running system commands.
• Added |nvim_win_text_height()| to get the number of screen lines occupied by
a range of text in a given window.
• Added |nvim_win_text_height()| to compute the number of screen lines occupied
by a range of text in a given window.
• |nvim_set_keymap()| and |nvim_del_keymap()| now support abbreviations.