mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 19:38:20 +00:00
fix(api): fix set_lines viewport adjustment, but this time good
fixes #27720
This commit is contained in:
@@ -150,16 +150,16 @@ describe('api/buf', function()
|
||||
]],
|
||||
}
|
||||
|
||||
lines[5] = 'boogalo 5'
|
||||
api.nvim_buf_set_lines(buf, 0, -1, true, lines)
|
||||
screen:expect {
|
||||
grid = [[
|
||||
^ |
|
||||
{1:~ }|*4
|
||||
{2:[No Name] }|
|
||||
line3 |
|
||||
line4 |
|
||||
line5 |
|
||||
boogalo 5 |
|
||||
line6 |
|
||||
{1:~ }|*2
|
||||
{3:[No Name] [+] }|
|
||||
|
|
||||
]],
|
||||
@@ -171,10 +171,9 @@ describe('api/buf', function()
|
||||
|
|
||||
{1:~ }|*4
|
||||
{3:[No Name] }|
|
||||
line3 |
|
||||
line4 |
|
||||
line5 |
|
||||
boogalo 5 |
|
||||
^line6 |
|
||||
{1:~ }|*2
|
||||
{2:[No Name] [+] }|
|
||||
|
|
||||
]],
|
||||
|
Reference in New Issue
Block a user