commit 5825d2f6cabc852dcbf5367d631b7c6cf4516d68
parent d6e898b44fbd6b18b3ca23f780ffaedc343961f1
Author: luukvbaal <luukvbaal@gmail.com>
Date: Fri, 12 May 2023 02:17:38 +0200
test(scroll_opt): fix typo in porting oldtest (#23593)
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git 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
@@ -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.