diff options
| author | Jason Fuchs <jasonfuchs@protonmail.com> | 2025-09-02 14:11:38 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-09-02 14:27:53 +0200 |
| commit | b6ecd9ce3012d6a6322fd013f5fad5e5f54856bb (patch) | |
| tree | 0fcd812e559a205cb87ccfbb6c0f93ae73c51b47 /init.lua | |
| parent | d9c6b0f60dae559eca22b0d0750c2327d11e11ef (diff) | |
| download | vis-lspc-b6ecd9ce3012d6a6322fd013f5fad5e5f54856bb.tar.gz vis-lspc-b6ecd9ce3012d6a6322fd013f5fad5e5f54856bb.zip | |
fix(empty file): fixes ls trying to open an empty file
Diffstat (limited to 'init.lua')
| -rw-r--r-- | init.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |
