Skip to content

Commit 10511c9

Browse files
committed
buffer/buffer: Store fileformat in LocalSettings on auto detection
1 parent a3071b1 commit 10511c9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/buffer/buffer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,6 +367,9 @@ func NewBuffer(r io.Reader, size int64, path string, startcursor Loc, btype BufT
367367
case "dos":
368368
ff = FFDos
369369
}
370+
} else {
371+
// in case of autodetection treat as locally set
372+
b.LocalSettings["fileformat"] = true
370373
}
371374

372375
b.LineArray = NewLineArray(uint64(size), ff, reader)

0 commit comments

Comments
 (0)