Fix fileformat

This commit is contained in:
Zachary Yedidia
2019-01-14 23:24:49 -05:00
parent 3380170af8
commit 4a5b759f16
4 changed files with 19 additions and 5 deletions

View File

@@ -107,7 +107,7 @@ func (b *Buffer) SaveAs(filename string) error {
// end of line
var eol []byte
if b.Settings["fileformat"] == "dos" {
if b.Endings == FFDos {
eol = []byte{'\r', '\n'}
} else {
eol = []byte{'\n'}