From 4303337c77057779c683068a15ecbbe0019f5cf6 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 (cherry picked from commit 3594c213a7fe99f028c870c4e05e98dbb84a2a8c) --- 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 56b517ddfa..9c6a91f833 100644 --- a/runtime/lua/vim/diagnostic.lua +++ b/runtime/lua/vim/diagnostic.lua @@ -1442,6 +1442,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 {}