aboutsummaryrefslogtreecommitdiff
path: root/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'init.lua')
-rw-r--r--init.lua4
1 files 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