aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/buffer_spec.lua
diff options
context:
space:
mode:
authorbfredl <bjorn.linse@gmail.com>2024-03-14 12:24:33 +0100
committerGitHub <noreply@github.com>2024-03-14 12:24:33 +0100
commitcdd0788c70e22b5e512a77959eea136d723b31d0 (patch)
tree5248b8288af99c6de83eaa4986d17afadc727a3f /test/functional/api/buffer_spec.lua
parent120c4ec855bc654ae067fafdb63bb16460d97c88 (diff)
parentfc2a56fe61a95b4124045039b39e20419920d2e2 (diff)
downloadrneovim-cdd0788c70e22b5e512a77959eea136d723b31d0.tar.gz
rneovim-cdd0788c70e22b5e512a77959eea136d723b31d0.tar.bz2
rneovim-cdd0788c70e22b5e512a77959eea136d723b31d0.zip
Merge pull request #27854 from bfredl/boogalo_lines
fix(api): fix set_lines viewport adjustment, but this time good
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] [+] }|
|
]],