buffer/buffer: Store fileformat in LocalSettings on auto detection

This commit is contained in:
Jöran Karl
2024-08-08 22:09:46 +02:00
parent a3071b173b
commit 10511c9baf

View File

@@ -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)