aboutsummaryrefslogtreecommitdiff
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
parentd6e898b44fbd6b18b3ca23f780ffaedc343961f1 (diff)
downloadrneovim-5825d2f6cabc852dcbf5367d631b7c6cf4516d68.tar.gz
rneovim-5825d2f6cabc852dcbf5367d631b7c6cf4516d68.tar.bz2
rneovim-5825d2f6cabc852dcbf5367d631b7c6cf4516d68.zip
test(scroll_opt): fix typo in porting oldtest (#23593)
-rw-r--r--runtime/doc/api.txt2
-rw-r--r--test/functional/legacy/display_spec.lua4
2 files changed, 3 insertions, 3 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})
diff --git a/test/functional/legacy/display_spec.lua b/test/functional/legacy/display_spec.lua
index f59eac7674..feb2662100 100644
--- a/test/functional/legacy/display_spec.lua
+++ b/test/functional/legacy/display_spec.lua
@@ -202,7 +202,7 @@ describe('display', function()
exec([[
set display=lastline smoothscroll scrolloff=0
call setline(1, [
- \'aaaaa'->repeat(500),
+ \'aaaaa'->repeat(150),
\'bbbbb '->repeat(7) .. 'ccccc '->repeat(7) .. 'ddddd '->repeat(7)
\])
]])
@@ -220,7 +220,7 @@ describe('display', function()
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
- ^aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
+ ^aaaaaaaaaaaaaaa |
|
]])
-- The correct part of the last line is moved into view.