diff options
| author | Florian Fischer <gitlab@muhq.space> | 2025-07-02 17:29:15 +0000 |
|---|---|---|
| committer | Florian Fischer <gitlab@muhq.space> | 2025-07-02 17:29:15 +0000 |
| commit | bb3b211399ae0738c52acedae202565dacdadb4e (patch) | |
| tree | 88427c5e6357c3cedf3ed5ed237e9f9d0c34f847 | |
| parent | 29126dd874ecdabbee186318259b390c33ceba31 (diff) | |
| parent | 4c2da3080de9f616b3d705041ee62e393594b32a (diff) | |
| download | vis-lspc-bb3b211399ae0738c52acedae202565dacdadb4e.tar.gz vis-lspc-bb3b211399ae0738c52acedae202565dacdadb4e.zip | |
Merge branch 'fix-select-location-format' into 'main'
Fix non-integers for position in select location
See merge request muhq/vis-lspc!62
| -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 |
