From 3594c213a7fe99f028c870c4e05e98dbb84a2a8c Mon Sep 17 00:00:00 2001 From: Bruce Wen Date: Wed, 18 Jun 2025 19:26:28 +0200 Subject: [PATCH] fix(diagnostics): validate opts.signs #34565 --- runtime/lua/vim/diagnostic.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/lua/vim/diagnostic.lua b/runtime/lua/vim/diagnostic.lua index 1d395e8c8f..bed91d3a1b 100644 --- a/runtime/lua/vim/diagnostic.lua +++ b/runtime/lua/vim/diagnostic.lua @@ -1527,6 +1527,7 @@ M.handlers.signs = { vim.validate('bufnr', bufnr, 'number') vim.validate('diagnostics', diagnostics, vim.islist, 'a list of diagnostics') vim.validate('opts', opts, 'table', true) + vim.validate('opts.signs', (opts and opts or {}).signs, 'table', true) bufnr = vim._resolve_bufnr(bufnr) opts = opts or {}