diff --git a/editors/textadept/modules/dmd/dcd.lua b/editors/textadept/modules/dmd/dcd.lua index 3247bf2..3ed6f29 100644 --- a/editors/textadept/modules/dmd/dcd.lua +++ b/editors/textadept/modules/dmd/dcd.lua @@ -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() diff --git a/server.d b/server.d index 5b746cf..3bdbc01 100644 --- a/server.d +++ b/server.d @@ -34,11 +34,11 @@ import modulecache; version(Posix) { - enum CONFIG_FILE_PATH = "~/.config/dcd"; + enum CONFIG_FILE_PATH = "~/.config/dcd"; } else version(Windows) { - enum CONFIG_FILE_PATH = "dcd.conf"; + enum CONFIG_FILE_PATH = "dcd.conf"; } int main(string[] args)