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

Method End

internal/buffer/line_array.go:320–323  ·  view source on GitHub ↗

End returns the location of the last character in the buffer

()

Source from the content-addressed store, hash-verified

318
319// End returns the location of the last character in the buffer
320func (la *LineArray) End() Loc {
321 numlines := len(la.lines)
322 return Loc{util.CharacterCount(la.lines[numlines-1].data), numlines - 1}
323}
324
325// LineBytes returns line n as an array of bytes
326func (la *LineArray) LineBytes(lineN int) []byte {

Callers

nothing calls this directly

Calls 1

CharacterCountFunction · 0.92

Tested by

no test coverage detected