mirror of
https://github.com/Hopiu/micro.git
synced 2026-04-12 02:20:59 +00:00
buffer/buffer: Store fileformat in LocalSettings on auto detection
This commit is contained in:
parent
a3071b173b
commit
10511c9baf
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue