From abe39f2b243dc813456225a779fbeb7ae6affc27 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Sun, 16 Jul 2023 18:02:53 +0800 Subject: feat(api)!: change return type of nvim_win_text_height to Dict (#24365) --- runtime/doc/api.txt | 4 +++- runtime/doc/news.txt | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'runtime') 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. -- cgit