diff options
| author | Florian Fischer <gitlab@muhq.space> | 2025-02-02 20:44:08 +0000 |
|---|---|---|
| committer | Florian Fischer <gitlab@muhq.space> | 2025-02-02 20:44:08 +0000 |
| commit | 73fe0529e8ca04246fcc97391589a513d17329cb (patch) | |
| tree | 394a99a8bad37a17628b7715c2117f31a8f65cb7 /util.lua | |
| parent | bae8a0a45393518bbf7914b10bf36139a977cda6 (diff) | |
| parent | 181daa0dd954d2d30b54b1c1b78d9a6cbf7868e9 (diff) | |
| download | vis-lspc-73fe0529e8ca04246fcc97391589a513d17329cb.tar.gz vis-lspc-73fe0529e8ca04246fcc97391589a513d17329cb.zip | |
Merge branch 'fix-find-root-uri' into 'main'
Fix some issues with find_root_uri
See merge request muhq/vis-lspc!55
Diffstat (limited to 'util.lua')
| -rw-r--r-- | util.lua | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -195,9 +195,10 @@ end -- @param globs a new line separated string of file globs -- @param start the starting path function util.find_upwards(globs, start) - local status, out = vis:pipe(globs, source_path .. '/tools/find-upwards "' .. start .. '"') + local status, out = util.vis_pipe(globs, '\'' .. source_path:gsub('\'', '\'\\\'\'') .. + '/tools/find-upwards\' "' .. start .. '"') - if status ~= 0 then + if status ~= 0 or out == nil then return nil end |
