1
1
mirror of https://github.com/qvacua/vimr.git synced 2024-12-25 06:43:24 +03:00

Quote args for nvim

This commit is contained in:
Tae Won Ha 2018-01-25 22:57:50 +01:00
parent 1fa09a7d22
commit 7ceeef4a30
No known key found for this signature in database
GPG Key ID: E40743465B5B8B44

View File

@ -368,7 +368,9 @@ class UiBridge {
nvimArgs.append("--headless")
let cmd = "exec '\(self.nvimServerExecutablePath())' '\(self.localServerName)' '\(self.remoteServerName)' "
.appending(self.nvimArgs.map { "\($0)" }.joined(separator: " "))
.appending(self.nvimArgs.map { "'\($0)'" }.joined(separator: " "))
self.logger.debug(cmd)
let writeHandle = inputPipe.fileHandleForWriting
guard let cmdData = cmd.data(using: .utf8) else {