DiffStatus returns the diff status for a line in the buffer
(lineN int)
| 1415 | |
| 1416 | // DiffStatus returns the diff status for a line in the buffer |
| 1417 | func (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. |