From b6ecd9ce3012d6a6322fd013f5fad5e5f54856bb Mon Sep 17 00:00:00 2001 From: Jason Fuchs Date: Tue, 2 Sep 2025 14:11:38 +0200 Subject: fix(empty file): fixes ls trying to open an empty file --- init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 29a4ed2..15982f4 100644 --- a/init.lua +++ b/init.lua @@ -292,7 +292,7 @@ local function lspc_select_location(locations) local location = val['location'] local choice = rel_path .. ':' .. ('%.0f'):format(position.line) .. ':' .. - ('%.0f'):format(position.col) .. ':' .. line_iter(position.line) + ('%.0f'):format(position.col) .. ':' .. (line_iter(position.line) or '') table.insert(choices, choice) choices[choice] = location end -- cgit v1.2.3