aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/api/vim.c
diff options
context:
space:
mode:
authorJavier Lopez <graulopezjavier@gmail.com>2021-11-01 08:46:26 -0500
committerGitHub <noreply@github.com>2021-11-01 07:46:26 -0600
commit961cd83b3b39855b232841f37ded856c8621bd90 (patch)
treef034a91a5f51a346fa4504a290265bb57bfe4b22 /src/nvim/api/vim.c
parentfa97d34858fbb755e8bb6f161c49c18c7187eb4e (diff)
downloadrneovim-961cd83b3b39855b232841f37ded856c8621bd90.tar.gz
rneovim-961cd83b3b39855b232841f37ded856c8621bd90.tar.bz2
rneovim-961cd83b3b39855b232841f37ded856c8621bd90.zip
refactor(api/marks)!: add opts param for feature extensibility (#16146)
In the future we might want to extend the concept of named marks and adding opts reduces the need of changing the function signature in the furute.
Diffstat (limited to 'src/nvim/api/vim.c')
-rw-r--r--src/nvim/api/vim.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c
index f51b5536e7..5e57c5c516 100644
--- a/src/nvim/api/vim.c
+++ b/src/nvim/api/vim.c
@@ -2013,11 +2013,12 @@ Boolean nvim_del_mark(String name, Error *err)
///
/// @note fails with error if a lowercase or buffer local named mark is used.
/// @param name Mark name
+/// @param opts Optional parameters. Reserved for future use.
/// @return 4-tuple (row, col, buffer, buffername), (0, 0, 0, '') if the mark is
/// not set.
/// @see |nvim_buf_set_mark()|
/// @see |nvim_del_mark()|
-Array nvim_get_mark(String name, Error *err)
+Array nvim_get_mark(String name, Dictionary opts, Error *err)
FUNC_API_SINCE(8)
{
Array rv = ARRAY_DICT_INIT;