mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 11:28:22 +00:00
fix(diagnostics): validate opts.signs #34565
This commit is contained in:
@@ -1527,6 +1527,7 @@ M.handlers.signs = {
|
|||||||
vim.validate('bufnr', bufnr, 'number')
|
vim.validate('bufnr', bufnr, 'number')
|
||||||
vim.validate('diagnostics', diagnostics, vim.islist, 'a list of diagnostics')
|
vim.validate('diagnostics', diagnostics, vim.islist, 'a list of diagnostics')
|
||||||
vim.validate('opts', opts, 'table', true)
|
vim.validate('opts', opts, 'table', true)
|
||||||
|
vim.validate('opts.signs', (opts and opts or {}).signs, 'table', true)
|
||||||
|
|
||||||
bufnr = vim._resolve_bufnr(bufnr)
|
bufnr = vim._resolve_bufnr(bufnr)
|
||||||
opts = opts or {}
|
opts = opts or {}
|
||||||
|
Reference in New Issue
Block a user