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

Method DiffNext

internal/action/actions.go:1277–1285  ·  view source on GitHub ↗

DiffNext searches forward until the beginning of the next block of diffs

()

Source from the content-addressed store, hash-verified

1275
1276// DiffNext searches forward until the beginning of the next block of diffs
1277func (h *BufPane) DiffNext() bool {
1278 cur := h.Cursor.Loc.Y
1279 dl, err := h.Buf.FindNextDiffLine(cur, true)
1280 if err != nil {
1281 return false
1282 }
1283 h.GotoLoc(buffer.Loc{0, dl})
1284 return true
1285}
1286
1287// DiffPrevious searches forward until the end of the previous block of diffs
1288func (h *BufPane) DiffPrevious() bool {

Callers

nothing calls this directly

Calls 2

GotoLocMethod · 0.95
FindNextDiffLineMethod · 0.80

Tested by

no test coverage detected