MCPcopy Create free account
hub / github.com/Rezonality/zep / ClampToVisibleLine

Method ClampToVisibleLine

src/buffer.cpp:519–525  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

517}
518
519GlyphIterator 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
528bool ZepBuffer::GetLineOffsets(const long line, ByteRange& range) const

Callers 1

ClampCursorForModeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected