| 517 | } |
| 518 | |
| 519 | GlyphIterator ZepBuffer::ClampToVisibleLine(GlyphIterator in) const |
| 520 | { |
| 521 | in = in.Clamp(); |
| 522 | auto loc = GetLinePos(in, LineLocation::LineLastNonCR); |
| 523 | in = std::min(loc, in); |
| 524 | return in; |
| 525 | } |
| 526 | |
| 527 | // Method for querying the beginning and end of a line |
| 528 | bool ZepBuffer::GetLineOffsets(const long line, ByteRange& range) const |