MCPcopy
hub / github.com/micro-editor/micro / LineArray

Struct LineArray

internal/buffer/line_array.go:73–78  ·  view source on GitHub ↗

A LineArray simply stores and array of lines and makes it easy to insert and delete in it

Source from the content-addressed store, hash-verified

71// A LineArray simply stores and array of lines and makes it easy to insert
72// and delete in it
73type LineArray struct {
74 lines []Line
75 Endings FileFormat
76 initsize uint64
77 lock sync.Mutex
78}
79
80// Append efficiently appends lines together
81// It allocates an additional 10000 lines if the original estimate

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected