diff options
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/api.txt | 4 | ||||
-rw-r--r-- | runtime/doc/news.txt | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index a20ba9a348..b33d251786 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -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. diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt index e16bcafac2..0a16cb0e96 100644 --- a/runtime/doc/news.txt +++ b/runtime/doc/news.txt @@ -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. |