comparison src/testdir/test_statusline.vim @ 24055:90d1636a8fcb v8.2.2569

patch 8.2.2569: 'fillchars' "stl" and "stlnc" items must be single byte Commit: https://github.com/vim/vim/commit/008bff967f7fcaa6af066f71d65bfbba5ef5c7d3 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Mar 4 21:55:58 2021 +0100 patch 8.2.2569: 'fillchars' "stl" and "stlnc" items must be single byte Problem: 'fillchars' "stl" and "stlnc" items must be single byte. Solution: Accept multi-byte characters. (Christian Wellenbrock, Yegappan Lakshmanan, closes #7927)
author Bram Moolenaar <Bram@vim.org>
date Thu, 04 Mar 2021 22:00:04 +0100
parents 92a100fc5e17
children 93b401236991
comparison
equal deleted inserted replaced
24054:815636fbcd96 24055:90d1636a8fcb
462 462
463 only 463 only
464 set ls& stl& 464 set ls& stl&
465 endfunc 465 endfunc
466 466
467 " Test using a multibyte character for 'stl' and 'stlnc' items in 'fillchars'
468 " with a custom 'statusline'
469 func Test_statusline_mbyte_fillchar()
470 only
471 set laststatus=2
472 set fillchars=vert:\|,fold:-,stl:━,stlnc:═
473 set statusline=a%=b
474 call assert_match('^a\+━\+b$', s:get_statusline())
475 vnew
476 call assert_match('^a\+━\+b━a\+═\+b$', s:get_statusline())
477 wincmd w
478 call assert_match('^a\+═\+b═a\+━\+b$', s:get_statusline())
479 set statusline& fillchars& laststatus&
480 %bw!
481 endfunc
467 482
468 " vim: shiftwidth=2 sts=2 expandtab 483 " vim: shiftwidth=2 sts=2 expandtab