Mercurial > vim
changeset 32673:bf6720206d58 v9.0.1667
patch 9.0.1667: regression test doesn't fail when fix is reverted
Commit: https://github.com/vim/vim/commit/e42989374144a63d986b878618aeac328e35ac3b
Author: zeertzjq <zeertzjq@outlook.com>
Date: Mon Jun 26 19:02:43 2023 +0100
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 https://github.com/vim/vim/issues/12587,
issue #12528)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 26 Jun 2023 20:15:02 +0200 |
parents | be673a3a79f3 |
children | 195ebcb7c329 |
files | src/testdir/dumps/Test_smoothscroll_zero_bot.dump src/testdir/test_scroll_opt.vim src/version.c |
diffstat | 3 files changed, 23 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/src/testdir/dumps/Test_smoothscroll_zero_bot.dump +++ b/src/testdir/dumps/Test_smoothscroll_zero_bot.dump @@ -1,19 +1,19 @@ -| +0#af5f00255#ffffff0||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 -|@+0#4040ff13&||+1#0000000&| +0&&@9 ->@+0#4040ff13&||+1#0000000&| +0&&@9 -|<+3&&| |<+1&&|a|m|e|]| |[|+|]| -| +0&&@11 +| +0#af5f00255#ffffff0||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +|@+0#4040ff13&||+1#0000000&| +0&&@72 +>@+0#4040ff13&||+1#0000000&| +0&&@72 +|<+3&&| |[+1&&|N|o| |N|a|m|e|]| |[|+|]| @59 +| +0&&@74
--- a/src/testdir/test_scroll_opt.vim +++ b/src/testdir/test_scroll_opt.vim @@ -840,7 +840,7 @@ func Test_smoothscroll_zero_width_scroll let lines =<< trim END silent normal yy silent normal 19p - winsize 0 19 + set cpoptions+=n vsplit vertical resize 0 set foldcolumn=1 @@ -849,9 +849,7 @@ func Test_smoothscroll_zero_width_scroll silent normal 20G END call writefile(lines, 'XSmoothScrollZeroBot', 'D') - let buf = RunVimInTerminal('-u NONE -S XSmoothScrollZeroBot', #{rows: 19, wait_for_ruler: 0}) - call TermWait(buf, 1000) - + let buf = RunVimInTerminal('-u NONE -S XSmoothScrollZeroBot', #{rows: 19}) call VerifyScreenDump(buf, 'Test_smoothscroll_zero_bot', {}) call StopVimInTerminal(buf)