From e0006ec83f353461ba8bacf5c200cda0a3634a34 Mon Sep 17 00:00:00 2001 From: David Chen Date: Mon, 24 Jul 2023 10:34:21 +0800 Subject: [PATCH] fix #4: account for paths with spaces --- lua/joshuto.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/joshuto.lua b/lua/joshuto.lua index 206500a3..fe9e57e1 100644 --- a/lua/joshuto.lua +++ b/lua/joshuto.lua @@ -76,7 +76,7 @@ local function joshuto(path) -- end os.remove(output_path) - local cmd = string.format('joshuto --file-chooser --output-file %s %s', output_path, path) + local cmd = string.format('joshuto --file-chooser --output-file "%s" "%s"', output_path, path) exec_joshuto_command(cmd) end