From 67d6b066e8490725718b79f643966f4eafc7da3c Mon Sep 17 00:00:00 2001 From: xiaojianzheng <1272209235@qq.com> Date: Thu, 17 Oct 2024 11:28:14 +0800 Subject: [PATCH] Fix get version on Windows (#144) --- lua/distant-core/cli.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/distant-core/cli.lua b/lua/distant-core/cli.lua index f3dcb77..6a14e89 100644 --- a/lua/distant-core/cli.lua +++ b/lua/distant-core/cli.lua @@ -28,7 +28,7 @@ function M:version() end -- Retrieve a raw version string in the form of "distant x.y.z-aaa.bbb" - local raw_version = vim.fn.system(self.path .. ' --version') + local raw_version = vim.fn.system({self.path, '--version'}) if not raw_version then return end