aboutsummaryrefslogtreecommitdiff
path: root/runtime
diff options
context:
space:
mode:
authorluukvbaal <luukvbaal@gmail.com>2023-05-12 02:17:38 +0200
committerGitHub <noreply@github.com>2023-05-12 08:17:38 +0800
commit5825d2f6cabc852dcbf5367d631b7c6cf4516d68 (patch)
treefb9c658cfe69ced4c2f4a8fd2a71b6111d5453e9 /runtime
parentd6e898b44fbd6b18b3ca23f780ffaedc343961f1 (diff)
downloadrneovim-5825d2f6cabc852dcbf5367d631b7c6cf4516d68.tar.gz
rneovim-5825d2f6cabc852dcbf5367d631b7c6cf4516d68.tar.bz2
rneovim-5825d2f6cabc852dcbf5367d631b7c6cf4516d68.zip
test(scroll_opt): fix typo in porting oldtest (#23593)
Diffstat (limited to 'runtime')
-rw-r--r--runtime/doc/api.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/doc/api.txt b/runtime/doc/api.txt
index 62afdc5830..f65ca8594c 100644
--- a/runtime/doc/api.txt
+++ b/runtime/doc/api.txt
@@ -411,7 +411,7 @@ use >lua
extid = vim.api.nvim_buf_set_extmark(buf, ns_id, line, col_start, {end_col = col_end, hl_group = hl_group})
-- example: modify the extmark's highlight group
- vim.api.nvim_buf_set_extmark(buf, ns_id, NEW_HL_GROUP, line, col_start, {end_col = col_end, hl_group = hl_group, id = extid})
+ vim.api.nvim_buf_set_extmark(buf, ns_id, line, col_start, {end_col = col_end, hl_group = NEW_HL_GROUP, id = extid})
-- example: change the highlight's position
vim.api.nvim_buf_set_extmark(buf, ns_id, NEW_LINE, col_start, {end_col = col_end, hl_group = NEW_HL_GROUP, id = extid})