aboutsummaryrefslogtreecommitdiff
path: root/test/functional/legacy/scroll_opt_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-05-07 07:04:49 +0800
committerGitHub <noreply@github.com>2023-05-07 07:04:49 +0800
commit408a7c2dac2d0d305cb59350cb44ca0864087657 (patch)
tree41669bcc6b033b7a0a8a47ced20690782a1dffbd /test/functional/legacy/scroll_opt_spec.lua
parent1bf29a0ae1fffee8a009dfbc8da2d7c048f6eb20 (diff)
parent8e74569d7ee170b8661bdc74d61cf6be95303060 (diff)
downloadrneovim-408a7c2dac2d0d305cb59350cb44ca0864087657.tar.gz
rneovim-408a7c2dac2d0d305cb59350cb44ca0864087657.tar.bz2
rneovim-408a7c2dac2d0d305cb59350cb44ca0864087657.zip
Merge pull request #23510 from luukvbaal/smoothscroll
vim-patch:9.0.{1512,1513}
Diffstat (limited to 'test/functional/legacy/scroll_opt_spec.lua')
-rw-r--r--test/functional/legacy/scroll_opt_spec.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/legacy/scroll_opt_spec.lua b/test/functional/legacy/scroll_opt_spec.lua
index 8af23d2c26..c3c99b506b 100644
--- a/test/functional/legacy/scroll_opt_spec.lua
+++ b/test/functional/legacy/scroll_opt_spec.lua
@@ -695,6 +695,30 @@ describe('smoothscroll', function()
]])
end)
+ -- oldtest: Test_smoothscroll_ins_lines()
+ it("this was unnecessarily inserting lines", function()
+ screen:try_resize(40, 6)
+ exec([=[
+ set wrap smoothscroll scrolloff=0 conceallevel=2 concealcursor=nc
+ call setline(1, [
+ \'line one' .. 'with lots of text in one line '->repeat(2),
+ \'line two',
+ \'line three',
+ \'line four',
+ \'line five'
+ \])
+ ]=])
+ feed('<C-E>gjgk')
+ screen:expect([[
+ <<<lots of text in one line^ |
+ line two |
+ line three |
+ line four |
+ line five |
+ |
+ ]])
+ end)
+
it("works with virt_lines above and below", function()
screen:try_resize(55, 7)
exec([=[