From 4c2da3080de9f616b3d705041ee62e393594b32a Mon Sep 17 00:00:00 2001 From: Michiel van den Heuvel Date: Wed, 2 Jul 2025 13:09:51 +0200 Subject: Fix non-integers for position in select location --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index 498887d..7ecdd59 100644 --- a/init.lua +++ b/init.lua @@ -291,8 +291,8 @@ local function lspc_select_location(locations) local position = val['position'] local location = val['location'] - local choice = rel_path .. ':' .. position.line .. ':' .. position.col .. ':' .. - line_iter(position.line) + local choice = rel_path .. ':' .. ('%.0f'):format(position.line) .. ':' .. + ('%.0f'):format(position.col) .. ':' .. line_iter(position.line) table.insert(choices, choice) choices[choice] = location end -- cgit v1.2.3