DiffPrevious searches forward until the end of the previous block of diffs
()
| 1286 | |
| 1287 | // DiffPrevious searches forward until the end of the previous block of diffs |
| 1288 | func (h *BufPane) DiffPrevious() bool { |
| 1289 | cur := h.Cursor.Loc.Y |
| 1290 | dl, err := h.Buf.FindNextDiffLine(cur, false) |
| 1291 | if err != nil { |
| 1292 | return false |
| 1293 | } |
| 1294 | h.GotoLoc(buffer.Loc{0, dl}) |
| 1295 | return true |
| 1296 | } |
| 1297 | |
| 1298 | // Undo undoes the last action |
| 1299 | func (h *BufPane) Undo() bool { |
nothing calls this directly
no test coverage detected