Skip to content

Commit 2328b9b

Browse files
sewbaccaCKolkey
authored andcommitted
fix: \ is not correctly escaped on MinGW
1 parent 4678cf8 commit 2328b9b

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lua/neogit/client.lua

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -65,11 +65,7 @@ function M.client(opts)
6565
logger.debug(("[CLIENT] Client address: %s"):format(client))
6666

6767
local lua_cmd =
68-
fmt('lua require("neogit.client").editor("%s", "%s", %s)', file_target, client, opts.show_diff)
69-
70-
if vim.uv.os_uname().sysname == "Windows_NT" then
71-
lua_cmd = lua_cmd:gsub("\\", "/")
72-
end
68+
fmt('lua require("neogit.client").editor(%q, %q, %s)', file_target, client, opts.show_diff)
7369

7470
local rpc_server = RPC.create_connection(nvim_server)
7571
rpc_server:send_cmd(lua_cmd)

0 commit comments

Comments
 (0)