mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 14:22:42 +09:00
Fix fileformat
This commit is contained in:
@@ -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'}
|
||||
|
||||
Reference in New Issue
Block a user