aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/buffer_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-03-14 10:55:40 +0100
committerbfredl <bjorn.linse@gmail.com>2024-03-14 10:56:24 +0100
commitfc2a56fe61a95b4124045039b39e20419920d2e2 (patch)
treeb9ba275a1d3447315a0923ada2c642b4c012983a /test/functional/api/buffer_spec.lua
parent8955cef0c6963678994347dbf95ed09fc8e29407 (diff)
downloadrneovim-fc2a56fe61a95b4124045039b39e20419920d2e2.tar.gz
rneovim-fc2a56fe61a95b4124045039b39e20419920d2e2.tar.bz2
rneovim-fc2a56fe61a95b4124045039b39e20419920d2e2.zip
fix(api): fix set_lines viewport adjustment, but this time good
fixes #27720
Diffstat (limited to 'test/functional/api/buffer_spec.lua')
-rw-r--r--test/functional/api/buffer_spec.lua11
1 files changed, 5 insertions, 6 deletions
diff --git a/test/functional/api/buffer_spec.lua b/test/functional/api/buffer_spec.lua
index f46cf7a315..a560546d2d 100644
--- a/test/functional/api/buffer_spec.lua
+++ b/test/functional/api/buffer_spec.lua
@@ -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] [+] }|
|
]],