From 35af766de6ee2436a4b24495fb862383d16b419d Mon Sep 17 00:00:00 2001 From: Yochem van Rosmalen Date: Thu, 24 Jul 2025 05:03:30 +0200 Subject: refactor(lua): use vim.system #34707 --- runtime/lua/vim/provider/ruby.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'runtime/lua/vim/provider/ruby.lua') diff --git a/runtime/lua/vim/provider/ruby.lua b/runtime/lua/vim/provider/ruby.lua index 3ad86001f3..299db64b44 100644 --- a/runtime/lua/vim/provider/ruby.lua +++ b/runtime/lua/vim/provider/ruby.lua @@ -45,8 +45,8 @@ function M.detect() prog = '' else -- neovim-ruby-host could be an rbenv shim for another Ruby version. - vim.fn.system(p) - prog = vim.v.shell_error ~= 0 and '' or p + local result = vim.system({ p }):wait() + prog = result.code ~= 0 and '' or p end end local err = prog == '' and 'missing ruby or ruby-host' or '' -- cgit