From 6f00edb9c20fc67a4379280617df842f3fe4d81d Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 15 Sep 2024 11:45:06 +0200 Subject: fix used quotes and remove old code in comments --- init.lua | 3 --- util.lua | 2 +- 2 files changed, 1 insertion(+), 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 -- cgit v1.2.3