mirror of
https://github.com/neovim/neovim.git
synced 2025-09-24 03:58:32 +00:00
fix(api): nvim_eval_statusline should validate input #18347
Fix #18112 Make an exception for strings starting with "%!".
This commit is contained in:
@@ -3044,6 +3044,10 @@ describe('API', function()
|
||||
eq('fillchar must be a single character',
|
||||
pcall_err(meths.eval_statusline, '', { fillchar = 1 }))
|
||||
end)
|
||||
it('rejects invalid string', function()
|
||||
eq('E539: Illegal character <}>',
|
||||
pcall_err(meths.eval_statusline, '%{%}', {}))
|
||||
end)
|
||||
describe('highlight parsing', function()
|
||||
it('works', function()
|
||||
eq({
|
||||
|
Reference in New Issue
Block a user