aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen_basic_spec.lua
diff options
context:
space:
mode:
authorJosh Rahm <joshuarahm@gmail.com>2024-11-19 22:57:13 +0000
committerJosh Rahm <joshuarahm@gmail.com>2024-11-19 22:57:13 +0000
commit9be89f131f87608f224f0ee06d199fcd09d32176 (patch)
tree11022dcfa9e08cb4ac5581b16734196128688d48 /test/functional/ui/screen_basic_spec.lua
parentff7ed8f586589d620a806c3758fac4a47a8e7e15 (diff)
parent88085c2e80a7e3ac29aabb6b5420377eed99b8b6 (diff)
downloadrneovim-9be89f131f87608f224f0ee06d199fcd09d32176.tar.gz
rneovim-9be89f131f87608f224f0ee06d199fcd09d32176.tar.bz2
rneovim-9be89f131f87608f224f0ee06d199fcd09d32176.zip
Merge remote-tracking branch 'upstream/master' into mix_20240309
Diffstat (limited to 'test/functional/ui/screen_basic_spec.lua')
-rw-r--r--test/functional/ui/screen_basic_spec.lua37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/functional/ui/screen_basic_spec.lua b/test/functional/ui/screen_basic_spec.lua
index 54580bf47c..85a653df36 100644
--- a/test/functional/ui/screen_basic_spec.lua
+++ b/test/functional/ui/screen_basic_spec.lua
@@ -4,6 +4,7 @@ local Screen = require('test.functional.ui.screen')
local spawn, set_session, clear = n.spawn, n.set_session, n.clear
local feed, command = n.feed, n.command
+local exec = n.exec
local insert = n.insert
local eq = t.eq
local fn, api = n.fn, n.api
@@ -819,3 +820,39 @@ it("showcmd doesn't cause empty grid_line with redrawdebug=compositor #22593", f
]],
}
end)
+
+it("scrolling in narrow window doesn't draw over separator #29033", function()
+ clear()
+ local screen = Screen.new(60, 8)
+ screen:attach()
+ feed('100Oa<Esc>gg')
+ exec([[
+ set number nowrap
+ vsplit
+ set scrollbind
+ wincmd l
+ set scrollbind
+ wincmd |
+ ]])
+ screen:expect([[
+ {8: }│{8: 1 }^a |
+ {8: }│{8: 2 }a |
+ {8: }│{8: 3 }a |
+ {8: }│{8: 4 }a |
+ {8: }│{8: 5 }a |
+ {8: }│{8: 6 }a |
+ {2:< }{3:[No Name] [+] }|
+ |
+ ]])
+ feed('<C-F>')
+ screen:expect([[
+ {8: }│{8: 5 }^a |
+ {8: }│{8: 6 }a |
+ {8: }│{8: 7 }a |
+ {8: }│{8: 8 }a |
+ {8: }│{8: 9 }a |
+ {8: }│{8: 10 }a |
+ {2:< }{3:[No Name] [+] }|
+ |
+ ]])
+end)