From 319a6b322ea34add387bd356d3d3fb9c6fd3b1ff Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 6 Aug 2024 09:01:48 +0200 Subject: fix diagnostic message creation if no file is available in the window --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index c55aca9..a857321 100644 --- a/init.lua +++ b/init.lua @@ -1424,7 +1424,7 @@ local function lspc_goto_next_diagnostic(win, reverse) local open_file = lspc.open_files[win.file.path] if not has_diagnostics(open_file) then - return win.file.path .. ' has no diagnostics available' + return (win.file.path or 'window') .. ' has no available diagnostics' end -- merge diagnostics -- cgit v1.2.3