diff options
author | zeertzjq <zeertzjq@outlook.com> | 2024-05-27 14:37:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-27 14:37:22 +0800 |
commit | 9a0239fdc8b380a8a32739a7c722fe90e3c2e910 (patch) | |
tree | dcdececca741c1a8d5bdfedbce2ec4f7c139552a /test | |
parent | ffbd09ef6acfbfac897be19d5ae847af6e6bd03d (diff) | |
download | rneovim-9a0239fdc8b380a8a32739a7c722fe90e3c2e910.tar.gz rneovim-9a0239fdc8b380a8a32739a7c722fe90e3c2e910.tar.bz2 rneovim-9a0239fdc8b380a8a32739a7c722fe90e3c2e910.zip |
fix(drawline): don't draw beyond end of window (#29035)
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/ui/screen_basic_spec.lua | 37 |
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) |