diff --git a/lua/navigator/diagnostics.lua b/lua/navigator/diagnostics.lua index ed23609..dfc06c4 100644 --- a/lua/navigator/diagnostics.lua +++ b/lua/navigator/diagnostics.lua @@ -95,7 +95,7 @@ local function error_marker(result, ctx, config) local stats = api.nvim_list_uis()[1] or {} -- local wwidth = stats.width; - local wheight = stats.height + local wheight = stats.height or 0 if total_num <= wheight then return