DiffNext searches forward until the beginning of the next block of diffs
()
| 1275 | |
| 1276 | // DiffNext searches forward until the beginning of the next block of diffs |
| 1277 | func (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 |
| 1288 | func (h *BufPane) DiffPrevious() bool { |
nothing calls this directly
no test coverage detected