comparison src/testdir/test_display.vim @ 29387:9dce192d1ac2 v9.0.0036

patch 9.0.0036: 'fillchars' cannot have window-local values Commit: https://github.com/vim/vim/commit/96ba25ac01279f73c0ecb5d4aa4ff37aa359e5eb Author: Bram Moolenaar <Bram@vim.org> Date: Mon Jul 4 17:34:33 2022 +0100 patch 9.0.0036: 'fillchars' cannot have window-local values Problem: 'fillchars' cannot have window-local values. Solution: Make 'fillchars' global-local. (closes https://github.com/vim/vim/issues/5206)
author Bram Moolenaar <Bram@vim.org>
date Mon, 04 Jul 2022 18:45:04 +0200
parents cf41a1f469f6
children 25e3121ed316
comparison
equal deleted inserted replaced
29386:f0f3018d296b 29387:9dce192d1ac2
354 354
355 %bw! 355 %bw!
356 set fillchars& fdc& foldmethod& foldenable& 356 set fillchars& fdc& foldmethod& foldenable&
357 endfunc 357 endfunc
358 358
359 func Test_local_fillchars()
360 CheckScreendump
361
362 let lines =<< trim END
363 call setline(1, ['window 1']->repeat(3))
364 setlocal fillchars=stl:1,stlnc:a,vert:=,eob:x
365 vnew
366 call setline(1, ['window 2']->repeat(3))
367 setlocal fillchars=stl:2,stlnc:b,vert:+,eob:y
368 new
369 wincmd J
370 call setline(1, ['window 3']->repeat(3))
371 setlocal fillchars=stl:3,stlnc:c,vert:<,eob:z
372 vnew
373 call setline(1, ['window 4']->repeat(3))
374 setlocal fillchars=stl:4,stlnc:d,vert:>,eob:o
375 END
376 call writefile(lines, 'Xdisplayfillchars')
377 let buf = RunVimInTerminal('-S Xdisplayfillchars', #{rows: 12})
378 call VerifyScreenDump(buf, 'Test_display_fillchars_1', {})
379
380 call term_sendkeys(buf, ":wincmd k\r")
381 call VerifyScreenDump(buf, 'Test_display_fillchars_2', {})
382
383 call StopVimInTerminal(buf)
384 call delete('Xdisplayfillchars')
385 endfunc
386
359 func Test_display_linebreak_breakat() 387 func Test_display_linebreak_breakat()
360 new 388 new
361 vert resize 25 389 vert resize 25
362 let _breakat = &breakat 390 let _breakat = &breakat
363 setl signcolumn=yes linebreak breakat=) showbreak=+\ 391 setl signcolumn=yes linebreak breakat=) showbreak=+\