comparison src/testdir/test_scroll_opt.vim @ 30847:2c03ff81cbcb v9.0.0758

patch 9.0.0758: "precedes" from 'listchars' overwritten by <<< Commit: https://github.com/vim/vim/commit/13cdde39520220bb856cba16626327c706752b51 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 15 14:07:48 2022 +0100 patch 9.0.0758: "precedes" from 'listchars' overwritten by <<< Problem: "precedes" from 'listchars' overwritten by <<< for 'smoothscroll'. Solution: Keep the "precedes" character.
author Bram Moolenaar <Bram@vim.org>
date Sat, 15 Oct 2022 15:15:03 +0200
parents fa3aba805a34
children a5bf86083558
comparison
equal deleted inserted replaced
30846:0008e4e58ac0 30847:2c03ff81cbcb
153 call VerifyScreenDump(buf, 'Test_smooth_number_7', {}) 153 call VerifyScreenDump(buf, 'Test_smooth_number_7', {})
154 154
155 call StopVimInTerminal(buf) 155 call StopVimInTerminal(buf)
156 endfunc 156 endfunc
157 157
158 func Test_smoothscroll_list()
159 CheckScreendump
160
161 let lines =<< trim END
162 vim9script
163 set smoothscroll scrolloff=0
164 set list
165 setline(1, [
166 'one',
167 'very long text '->repeat(12),
168 'three',
169 ])
170 exe "normal 2Gzt\<C-E>"
171 END
172 call writefile(lines, 'XSmoothList', 'D')
173 let buf = RunVimInTerminal('-S XSmoothList', #{rows: 8, cols: 40})
174
175 call VerifyScreenDump(buf, 'Test_smooth_list_1', {})
176
177 call term_sendkeys(buf, ":set listchars+=precedes:#\<CR>")
178 call VerifyScreenDump(buf, 'Test_smooth_list_2', {})
179
180 call StopVimInTerminal(buf)
181 endfunc
182
158 func Test_smoothscroll_diff_mode() 183 func Test_smoothscroll_diff_mode()
159 CheckScreendump 184 CheckScreendump
160 185
161 let lines =<< trim END 186 let lines =<< trim END
162 vim9script 187 vim9script