neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit f2e5f509d995b291e4b9e05a0c059e83490a18e1
parent e0fe91f6a3ec88d6f8bee4f7af1af6bf9b397c1f
Author: Xiretza <xiretza@xiretza.xyz>
Date:   Fri, 18 Mar 2022 19:58:00 +0100

docs: reword description for nvim_buf_line_count() (#17766)

This adds a few more keywords to make the function easier to find.
Diffstat:
Mruntime/doc/api.txt | 2+-
Msrc/nvim/api/buffer.c | 2+-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt @@ -2215,7 +2215,7 @@ nvim_buf_is_valid({buffer}) *nvim_buf_is_valid()* true if the buffer is valid, false otherwise. nvim_buf_line_count({buffer}) *nvim_buf_line_count()* - Gets the buffer line count + Returns the number of lines in the given buffer. Parameters: ~ {buffer} Buffer handle, or 0 for current buffer diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c @@ -52,7 +52,7 @@ /// whether a buffer is loaded. -/// Gets the buffer line count +/// Returns the number of lines in the given buffer. /// /// @param buffer Buffer handle, or 0 for current buffer /// @param[out] err Error details, if any