aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2024-09-15 11:45:06 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2024-09-15 11:45:06 +0200
commit6f00edb9c20fc67a4379280617df842f3fe4d81d (patch)
tree4167e0e19616a6fd435cc778727d31b41b9f19d4
parentcb927930cafdd4e1686381035b88f9ee9e8e6692 (diff)
downloadvis-lspc-6f00edb9c20fc67a4379280617df842f3fe4d81d.tar.gz
vis-lspc-6f00edb9c20fc67a4379280617df842f3fe4d81d.zip
fix used quotes and remove old code in comments
-rw-r--r--init.lua3
-rw-r--r--util.lua2
2 files changed, 1 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index cbd51bc..3fcb0e8 100644
--- a/init.lua
+++ b/init.lua
@@ -339,9 +339,6 @@ local function lspc_confirm(prompt)
end
lspc:log('get confirmation using: ' .. cmd)
- -- local menu = io.popen(cmd)
- -- local output = menu:read('*a')
- -- local _, _, status = menu:close()
local choice = nil
local status, output = util.vis_pipe(choices, cmd)
diff --git a/util.lua b/util.lua
index 363549e..3bdf227 100644
--- a/util.lua
+++ b/util.lua
@@ -77,7 +77,7 @@ end
-- @return the relative path
function util.get_relative_path(cwd_components, absolute_path_or_components)
local absolute_components
- if type(absolute_path_or_components) == "string" then
+ if type(absolute_path_or_components) == 'string' then
absolute_components = util.split_path_into_components(absolute_path_or_components)
else
absolute_components = absolute_path_or_components