diff options
| author | Michiel van den Heuvel <michielvdnheuvel@gmail.com> | 2025-07-02 13:09:51 +0200 |
|---|---|---|
| committer | Michiel van den Heuvel <michielvdnheuvel@gmail.com> | 2025-07-02 13:09:51 +0200 |
| commit | 4c2da3080de9f616b3d705041ee62e393594b32a (patch) | |
| tree | 3f3052aa9d343396666805756627ec9514d4fb87 | |
| parent | fff9fe58857c0ecddbaf1ef250d505ca4dd371ff (diff) | |
| download | vis-lspc-4c2da3080de9f616b3d705041ee62e393594b32a.tar.gz vis-lspc-4c2da3080de9f616b3d705041ee62e393594b32a.zip | |
Fix non-integers for position in select location
| -rw-r--r-- | init.lua | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
