summary refs log tree commit diff
path: root/.vim/lua/misc.lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.vim/lua/misc.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/.vim/lua/misc.lua b/.vim/lua/misc.lua
index 7d4fa31..37ef854 100644
--- a/.vim/lua/misc.lua
+++ b/.vim/lua/misc.lua
@@ -40,8 +40,7 @@ function M.open_under_cursor(cmd, detect_cmd)
     if cmd:sub(1, 1) == ":" then
       vim.cmd(cmd:sub(2) .. ' ' .. txt)
     else
-      local c
-      c = vim.loop.spawn(cmd, { args = {txt} }, function() c:close() end)
+      vim.loop.spawn(cmd, {args = {txt}})
     end
   end)
 end