A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/neovim/neovim/commit/3011794c8600f529bc049983a64ca99ae03908df below:

relax statusline fillchar width check · neovim/neovim@3011794 · GitHub

@@ -2621,24 +2621,24 @@ describe('API', function()

2621 2621

eq({ str = 'a━━━b', width = 5 },

2622 2622

meths.eval_statusline('a%=b', { fillchar = '', maxwidth = 5 }))

2623 2623

end)

2624 -

it('rejects double-width fillchar', function()

2625 -

eq('fillchar must be a single-width character',

2626 -

pcall_err(meths.eval_statusline, '', { fillchar = '' }))

2624 +

it('treats double-width fillchar as single-width', function()

2625 +

eq({ str = 'a哦哦哦b', width = 5 },

2626 +

meths.eval_statusline('a%=b', { fillchar = '', maxwidth = 5 }))

2627 2627

end)

2628 -

it('rejects control character fillchar', function()

2629 -

eq('fillchar must be a single-width character',

2630 -

pcall_err(meths.eval_statusline, '', { fillchar = '\a' }))

2628 +

it('treats control character fillchar as single-width', function()

2629 +

eq({ str = 'a\031\031\031b', width = 5 },

2630 +

meths.eval_statusline('a%=b', { fillchar = '\031', maxwidth = 5 }))

2631 2631

end)

2632 2632

it('rejects multiple-character fillchar', function()

2633 -

eq('fillchar must be a single-width character',

2633 +

eq('fillchar must be a single character',

2634 2634

pcall_err(meths.eval_statusline, '', { fillchar = 'aa' }))

2635 2635

end)

2636 2636

it('rejects empty string fillchar', function()

2637 -

eq('fillchar must be a single-width character',

2637 +

eq('fillchar must be a single character',

2638 2638

pcall_err(meths.eval_statusline, '', { fillchar = '' }))

2639 2639

end)

2640 2640

it('rejects non-string fillchar', function()

2641 -

eq('fillchar must be a single-width character',

2641 +

eq('fillchar must be a single character',

2642 2642

pcall_err(meths.eval_statusline, '', { fillchar = 1 }))

2643 2643

end)

2644 2644

describe('highlight parsing', function()


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4