From 6a972bd827272df26c3cb083c81ecd95815477b9 Mon Sep 17 00:00:00 2001 From: Jean Mertz Date: Sat, 17 Jul 2021 21:21:40 +0200 Subject: [PATCH] make runnables work on paths with spaces --- lua/rust-tools/runnables.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/rust-tools/runnables.lua b/lua/rust-tools/runnables.lua index 548e572..8c2ba11 100644 --- a/lua/rust-tools/runnables.lua +++ b/lua/rust-tools/runnables.lua @@ -33,7 +33,7 @@ local function getCommand(c, results) local dir = args.workspaceRoot; - ret = string.format("cd %s && cargo ", dir) + ret = string.format("cd '%s' && cargo ", dir) for _, value in ipairs(args.cargoArgs) do ret = ret .. value .. " "