From 1e8908c6d5fd998e9d8a9408a6b86ef4a2ff64e8 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 8 Jul 2014 16:35:34 +1000 Subject: Split parts of Editor class off into EditModel, MarginView, and EditView classes. --- src/PositionCache.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/PositionCache.h') diff --git a/src/PositionCache.h b/src/PositionCache.h index 05005e9ac..c81740ee3 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -148,8 +148,7 @@ struct TextSegment { // Class to break a line of text into shorter runs at sensible places. class BreakFinder { const LineLayout *ll; - int lineStart; - int lineEnd; + Range lineRange; int posLineStart; int nextBreak; std::vector selAndEdge; @@ -168,7 +167,7 @@ public: enum { lengthStartSubdivision = 300 }; // Try to make each subdivided run lengthEachSubdivision or shorter. enum { lengthEachSubdivision = 100 }; - BreakFinder(const LineLayout *ll_, const Selection *psel, int lineStart_, int lineEnd_, int posLineStart_, + BreakFinder(const LineLayout *ll_, const Selection *psel, Range rangeLine_, int posLineStart_, int xStart, bool breakForSelection, const Document *pdoc_, const SpecialRepresentations *preprs_); ~BreakFinder(); TextSegment Next(); -- cgit v1.2.3