diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-07-16 18:02:53 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-16 18:02:53 +0800 |
commit | abe39f2b243dc813456225a779fbeb7ae6affc27 (patch) | |
tree | fa4008f79ff2b51ed16b6827c24097e68b480362 /runtime/doc | |
parent | 622ae2f53e77873a114f86f5acaff341ef3098ac (diff) | |
download | rneovim-abe39f2b243dc813456225a779fbeb7ae6affc27.tar.gz rneovim-abe39f2b243dc813456225a779fbeb7ae6affc27.tar.bz2 rneovim-abe39f2b243dc813456225a779fbeb7ae6affc27.zip |
feat(api)!: change return type of nvim_win_text_height to Dict (#24365)
Diffstat (limited to 'runtime/doc')
-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. |