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

Method Diff

internal/buffer/loc.go:129–131  ·  view source on GitHub ↗

Diff returns the difference between two locs

(b Loc, buf *Buffer)

Source from the content-addressed store, hash-verified

127
128// Diff returns the difference between two locs
129func (l Loc) Diff(b Loc, buf *Buffer) int {
130 return DiffLA(l, b, buf.LineArray)
131}
132
133// Move moves a loc n characters
134func (l Loc) Move(n int, buf *Buffer) Loc {

Callers

nothing calls this directly

Calls 1

DiffLAFunction · 0.85

Tested by

no test coverage detected