aboutsummaryrefslogtreecommitdiff
path: root/test/functional
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-06-27 08:22:21 +0800
committerzeertzjq <zeertzjq@outlook.com>2023-06-27 08:26:11 +0800
commit116b09ac0495f07cb42a0b034622b6122d4ea0f8 (patch)
tree421d42a6c3d86e11cf37af09175ccb789c069214 /test/functional
parent3b6fb3fefd0bde9bd0700987c4db549a7f4916ec (diff)
downloadrneovim-116b09ac0495f07cb42a0b034622b6122d4ea0f8.tar.gz
rneovim-116b09ac0495f07cb42a0b034622b6122d4ea0f8.tar.bz2
rneovim-116b09ac0495f07cb42a0b034622b6122d4ea0f8.zip
vim-patch:9.0.1667: regression test doesn't fail when fix is reverted
Problem: Regression test doesn't fail when fix is reverted. Solution: Add "n" to 'cpoptions' instead of using :winsize. (closes vim/vim#12587, issue vim/vim#12528) https://github.com/vim/vim/commit/e42989374144a63d986b878618aeac328e35ac3b
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/legacy/scroll_opt_spec.lua47
1 files changed, 24 insertions, 23 deletions
diff --git a/test/functional/legacy/scroll_opt_spec.lua b/test/functional/legacy/scroll_opt_spec.lua
index 165570e7ec..ae6a409762 100644
--- a/test/functional/legacy/scroll_opt_spec.lua
+++ b/test/functional/legacy/scroll_opt_spec.lua
@@ -941,16 +941,17 @@ describe('smoothscroll', function()
-- oldtest: Test_smoothscroll_zero_width_scroll_cursor_bot()
it('does not divide by zero in zero-width window', function()
- screen:try_resize(12, 19)
+ screen:try_resize(40, 19)
screen:set_default_attr_ids({
[1] = {foreground = Screen.colors.Brown}; -- LineNr
- [2] = {bold = true, reverse = true}; -- StatusLine
- [3] = {reverse = true}; -- StatusLineNC
+ [2] = {bold = true, foreground = Screen.colors.Blue}; -- NonText
+ [3] = {bold = true, reverse = true}; -- StatusLine
+ [4] = {reverse = true}; -- StatusLineNC
})
exec([[
silent normal yy
silent normal 19p
- winsize 0 19
+ set cpoptions+=n
vsplit
vertical resize 0
set foldcolumn=1
@@ -959,25 +960,25 @@ describe('smoothscroll', function()
silent normal 20G
]])
screen:expect([[
- {1: }│ |
- {1: }│ |
- {1: }│ |
- {1: }│ |
- {1: }│ |
- {1: }│ |
- {1: }│ |
- {1: }│ |
- {1: }│ |
- {1: }│ |
- {1: }│ |
- {1: }│ |
- {1: }│ |
- {1: }│ |
- {1: }│ |
- {1: }│ |
- {1:^ }│ |
- {2:< }{3:<ame] [+] }|
- |
+ {1: }│ |
+ {2:@}│ |
+ {2:@}│ |
+ {2:@}│ |
+ {2:@}│ |
+ {2:@}│ |
+ {2:@}│ |
+ {2:@}│ |
+ {2:@}│ |
+ {2:@}│ |
+ {2:@}│ |
+ {2:@}│ |
+ {2:@}│ |
+ {2:@}│ |
+ {2:@}│ |
+ {2:@}│ |
+ {2:^@}│ |
+ {3:< }{4:[No Name] [+] }|
+ |
]])
end)