Fix writing of crlf on windows when saving

Resolves #51
This commit is contained in:
Anthony Sottile
2020-04-01 22:41:40 -07:00
parent 1919c2d4fe
commit 47e008afa4

View File

@@ -432,7 +432,7 @@ class Screen:
self.status.update('(file changed on disk, not implemented)')
return PromptResult.CANCELLED
with open(self.file.filename, 'w') as f:
with open(self.file.filename, 'w', newline='') as f:
f.write(contents)
self.file.modified = False