mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(diagnostic): check for nil in show_diagnostics (#15772)
This commit is contained in:
parent
057606e845
commit
9cde1e5891
@ -379,7 +379,7 @@ end
|
||||
---@param diagnostics table: The diagnostics to display
|
||||
---@return table {popup_bufnr, win_id}
|
||||
local function show_diagnostics(opts, diagnostics)
|
||||
if vim.tbl_isempty(diagnostics) then
|
||||
if not diagnostics or vim.tbl_isempty(diagnostics) then
|
||||
return
|
||||
end
|
||||
local lines = {}
|
||||
|
Loading…
Reference in New Issue
Block a user