Issue #8: Must use binary popen to avoid CRLF screwing everything up.
This commit is contained in:
parent
8cc0f2546d
commit
61ec081805
|
@ -111,7 +111,7 @@ function M.autocomplete(ch)
|
|||
if buffer:get_lexer() ~= "dmd" then return end
|
||||
local fileName = os.tmpname()
|
||||
local command = M.PATH_TO_DCD_CLIENT .. " -c" .. buffer.current_pos .. " > " .. fileName
|
||||
local p = io.popen(command, "w")
|
||||
local p = io.popen(command, "wb")
|
||||
p:write(buffer:get_text())
|
||||
p:flush()
|
||||
p:close()
|
||||
|
|
Loading…
Reference in New Issue