mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-11 23:22:41 +09:00
buffer/buffer: Store fileformat in LocalSettings on auto detection
This commit is contained in:
@@ -367,6 +367,9 @@ func NewBuffer(r io.Reader, size int64, path string, startcursor Loc, btype BufT
|
||||
case "dos":
|
||||
ff = FFDos
|
||||
}
|
||||
} else {
|
||||
// in case of autodetection treat as locally set
|
||||
b.LocalSettings["fileformat"] = true
|
||||
}
|
||||
|
||||
b.LineArray = NewLineArray(uint64(size), ff, reader)
|
||||
|
||||
Reference in New Issue
Block a user