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

Method DiffStatus

internal/buffer/buffer.go:1417–1422  ·  view source on GitHub ↗

DiffStatus returns the diff status for a line in the buffer

(lineN int)

Source from the content-addressed store, hash-verified

1415
1416// DiffStatus returns the diff status for a line in the buffer
1417func (b *Buffer) DiffStatus(lineN int) DiffStatus {
1418 b.diffLock.RLock()
1419 defer b.diffLock.RUnlock()
1420 // Note that the zero value for DiffStatus is equal to DSUnchanged
1421 return b.diff[lineN]
1422}
1423
1424// FindNextDiffLine returns the line number of the next block of diffs.
1425// If `startLine` is already in a block of diffs, lines in that block are skipped.

Callers 1

drawDiffGutterMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected