mirror of
https://github.com/neovim/neovim.git
synced 2024-12-31 17:13:26 -07:00
test(scroll_opt): fix typo in porting oldtest (#23593)
This commit is contained in:
parent
d6e898b44f
commit
5825d2f6ca
@ -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})
|
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
|
-- 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
|
-- 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})
|
vim.api.nvim_buf_set_extmark(buf, ns_id, NEW_LINE, col_start, {end_col = col_end, hl_group = NEW_HL_GROUP, id = extid})
|
||||||
|
@ -202,7 +202,7 @@ describe('display', function()
|
|||||||
exec([[
|
exec([[
|
||||||
set display=lastline smoothscroll scrolloff=0
|
set display=lastline smoothscroll scrolloff=0
|
||||||
call setline(1, [
|
call setline(1, [
|
||||||
\'aaaaa'->repeat(500),
|
\'aaaaa'->repeat(150),
|
||||||
\'bbbbb '->repeat(7) .. 'ccccc '->repeat(7) .. 'ddddd '->repeat(7)
|
\'bbbbb '->repeat(7) .. 'ccccc '->repeat(7) .. 'ddddd '->repeat(7)
|
||||||
\])
|
\])
|
||||||
]])
|
]])
|
||||||
@ -220,7 +220,7 @@ describe('display', function()
|
|||||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
|
||||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
|
||||||
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
|
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
|
||||||
^aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa|
|
^aaaaaaaaaaaaaaa |
|
||||||
|
|
|
|
||||||
]])
|
]])
|
||||||
-- The correct part of the last line is moved into view.
|
-- The correct part of the last line is moved into view.
|
||||||
|
Loading…
Reference in New Issue
Block a user