mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
Minor observational corrections to the set_extmark documentation
Add a note for the line and col, saying they are 0-based. The end_col appears to be exclusive, unline the end_line.
This commit is contained in:
@@ -2252,14 +2252,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 number 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.
|
||||
|
Reference in New Issue
Block a user