aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-03-31 18:05:17 +0200
committerGitHub <noreply@github.com>2022-03-31 18:05:17 +0200
commitebab51b192f3737b4d902a500b6366e174e7a891 (patch)
tree8163ad0accf86e978ae826ce52b6d99504fc44e7 /src
parent2e85af47d2584372f968b760cab3eeee65273424 (diff)
downloadrneovim-ebab51b192f3737b4d902a500b6366e174e7a891.tar.gz
rneovim-ebab51b192f3737b4d902a500b6366e174e7a891.tar.bz2
rneovim-ebab51b192f3737b4d902a500b6366e174e7a891.zip
docs(extmark): fix nvim_buf_get_extmarks example (#17934)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/api/extmark.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/api/extmark.c b/src/nvim/api/extmark.c
index 797b64e2af..8dca37a321 100644
--- a/src/nvim/api/extmark.c
+++ b/src/nvim/api/extmark.c
@@ -259,9 +259,9 @@ ArrayOf(Integer) nvim_buf_get_extmark_by_id(Buffer buffer, Integer ns_id,
/// local pos = a.nvim_win_get_cursor(0)
/// local ns = a.nvim_create_namespace('my-plugin')
/// -- Create new extmark at line 1, column 1.
-/// local m1 = a.nvim_buf_set_extmark(0, ns, 0, 0, 0, {})
+/// local m1 = a.nvim_buf_set_extmark(0, ns, 0, 0, {})
/// -- Create new extmark at line 3, column 1.
-/// local m2 = a.nvim_buf_set_extmark(0, ns, 0, 2, 0, {})
+/// local m2 = a.nvim_buf_set_extmark(0, ns, 0, 2, {})
/// -- Get extmarks only from line 3.
/// local ms = a.nvim_buf_get_extmarks(0, ns, {2,0}, {2,0}, {})
/// -- Get all marks in this buffer + namespace.