comparison src/testdir/test_scroll_opt.vim @ 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 695b50472e85
children 0eda094f9b7e
comparison
equal deleted inserted replaced
32672:be673a3a79f3 32673:bf6720206d58
838 CheckScreendump 838 CheckScreendump
839 839
840 let lines =<< trim END 840 let lines =<< trim END
841 silent normal yy 841 silent normal yy
842 silent normal 19p 842 silent normal 19p
843 winsize 0 19 843 set cpoptions+=n
844 vsplit 844 vsplit
845 vertical resize 0 845 vertical resize 0
846 set foldcolumn=1 846 set foldcolumn=1
847 set number 847 set number
848 set smoothscroll 848 set smoothscroll
849 silent normal 20G 849 silent normal 20G
850 END 850 END
851 call writefile(lines, 'XSmoothScrollZeroBot', 'D') 851 call writefile(lines, 'XSmoothScrollZeroBot', 'D')
852 let buf = RunVimInTerminal('-u NONE -S XSmoothScrollZeroBot', #{rows: 19, wait_for_ruler: 0}) 852 let buf = RunVimInTerminal('-u NONE -S XSmoothScrollZeroBot', #{rows: 19})
853 call TermWait(buf, 1000)
854
855 call VerifyScreenDump(buf, 'Test_smoothscroll_zero_bot', {}) 853 call VerifyScreenDump(buf, 'Test_smoothscroll_zero_bot', {})
856 854
857 call StopVimInTerminal(buf) 855 call StopVimInTerminal(buf)
858 endfunc 856 endfunc
859 857