aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/private/helpers.c
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2019-11-09 12:41:50 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2019-11-11 20:18:15 +0100
commit18a8b702c0ce7a8bacd84f6c95e440ae23a3299e (patch)
treecd3bbe1bfe009ce75633793b028da2ce0ed35ef2 /src/nvim/api/private/helpers.c
parenta9065a50518ef59351f9d0d32041a991a751653f (diff)
downloadrneovim-18a8b702c0ce7a8bacd84f6c95e440ae23a3299e.tar.gz
rneovim-18a8b702c0ce7a8bacd84f6c95e440ae23a3299e.tar.bz2
rneovim-18a8b702c0ce7a8bacd84f6c95e440ae23a3299e.zip
extmark: review changes
Diffstat (limited to 'src/nvim/api/private/helpers.c')
-rw-r--r--src/nvim/api/private/helpers.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/nvim/api/private/helpers.c b/src/nvim/api/private/helpers.c
index 5e9a572a78..6b69350429 100644
--- a/src/nvim/api/private/helpers.c
+++ b/src/nvim/api/private/helpers.c
@@ -1575,12 +1575,14 @@ bool ns_initialized(uint64_t ns)
return ns < (uint64_t)next_namespace_id;
}
-// Extmarks may be queried from position or name or even special names
-// in the future such as "cursor". This macro sets the line and col
-// to make the extmark functions recognize what's required
-//
-// *lnum: linenr_T, lnum to be set
-// *col: colnr_T, col to be set
+/// Get line and column from extmark object
+///
+/// Extmarks may be queried from position or name or even special names
+/// in the future such as "cursor". This function sets the line and col
+/// to make the extmark functions recognize what's required
+///
+/// @param[out] lnum lnum to be set
+/// @param[out] colnr col to be set
bool set_extmark_index_from_obj(buf_T *buf, Integer namespace,
Object obj, linenr_T *lnum, colnr_T *colnr,
Error *err)