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
|
if buffer:get_lexer() ~= "dmd" then return end
|
||||||
local fileName = os.tmpname()
|
local fileName = os.tmpname()
|
||||||
local command = M.PATH_TO_DCD_CLIENT .. " -c" .. buffer.current_pos .. " > " .. fileName
|
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:write(buffer:get_text())
|
||||||
p:flush()
|
p:flush()
|
||||||
p:close()
|
p:close()
|
||||||
|
|
4
server.d
4
server.d
|
@ -34,11 +34,11 @@ import modulecache;
|
||||||
|
|
||||||
version(Posix)
|
version(Posix)
|
||||||
{
|
{
|
||||||
enum CONFIG_FILE_PATH = "~/.config/dcd";
|
enum CONFIG_FILE_PATH = "~/.config/dcd";
|
||||||
}
|
}
|
||||||
else version(Windows)
|
else version(Windows)
|
||||||
{
|
{
|
||||||
enum CONFIG_FILE_PATH = "dcd.conf";
|
enum CONFIG_FILE_PATH = "dcd.conf";
|
||||||
}
|
}
|
||||||
|
|
||||||
int main(string[] args)
|
int main(string[] args)
|
||||||
|
|
Loading…
Reference in New Issue