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