diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-06-10 09:39:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-10 09:39:35 +0200 |
commit | 53791c05463bf0abe323130b0fa165a7652109f5 (patch) | |
tree | 97742adb675cd3347e9ec67cfc68191c9ccb68d6 | |
parent | fd7e77b2277d884c51bc6f0bd70c0e6e7a307bc1 (diff) | |
parent | 5ea9cbc280aec623d8c6c262c1b7ccea62d1e566 (diff) | |
download | rneovim-53791c05463bf0abe323130b0fa165a7652109f5.tar.gz rneovim-53791c05463bf0abe323130b0fa165a7652109f5.tar.bz2 rneovim-53791c05463bf0abe323130b0fa165a7652109f5.zip |
Merge pull request #14510 from urandom/doc_nvim_buf_set_extmark
Minor observational corrections to the nvim_buf_set_extmark documentation
-rw-r--r-- | runtime/doc/api.txt | 6 | ||||
-rw-r--r-- | src/nvim/api/buffer.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt index 5dab065e60..bdabc6a9ee 100644 --- a/runtime/doc/api.txt +++ b/runtime/doc/api.txt @@ -2274,14 +2274,14 @@ nvim_buf_set_extmark({buffer}, {ns_id}, {line}, {col}, {opts}) Parameters: ~ {buffer} Buffer handle, or 0 for current buffer {ns_id} Namespace id from |nvim_create_namespace()| - {line} Line number where to place the mark - {col} Column where to place the mark + {line} Line where to place the mark, 0-based + {col} Column where to place the mark, 0-based {opts} Optional parameters. • id : id of the extmark to edit. • end_line : ending line of the mark, 0-based inclusive. • end_col : ending col of the mark, 0-based - inclusive. + exclusive. • hl_group : name of the highlight group used to highlight this mark. • virt_text : virtual text to link to this mark. diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index 11a4647d1c..f84e8c99a4 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -1424,12 +1424,12 @@ Array nvim_buf_get_extmarks(Buffer buffer, Integer ns_id, /// /// @param buffer Buffer handle, or 0 for current buffer /// @param ns_id Namespace id from |nvim_create_namespace()| -/// @param line Line number where to place the mark -/// @param col Column where to place the mark +/// @param line Line where to place the mark, 0-based +/// @param col Column where to place the mark, 0-based /// @param opts Optional parameters. /// - id : id of the extmark to edit. /// - end_line : ending line of the mark, 0-based inclusive. -/// - end_col : ending col of the mark, 0-based inclusive. +/// - end_col : ending col of the mark, 0-based exclusive. /// - hl_group : name of the highlight group used to highlight /// this mark. /// - virt_text : virtual text to link to this mark. |