aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
diff options
context:
space:
mode:
authorZufu Liu <unknown>2022-01-22 13:41:15 +1100
committerZufu Liu <unknown>2022-01-22 13:41:15 +1100
commit715a474013efcbe331ec184bf295138a7194004e (patch)
tree88d1146aeb4ca7f0fdd6b22874f8f0827cc90f5f /src/PositionCache.h
parenta3fff53a48e63064b14f7a1842b20f260bc5a9bc (diff)
downloadscintilla-mirror-715a474013efcbe331ec184bf295138a7194004e.tar.gz
Feature [feature-requests:#1422] Minor improvements to line layout and wrapping.
May avoid some small costs and be clearer.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r--src/PositionCache.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h
index e8c9293d1..aeede7058 100644
--- a/src/PositionCache.h
+++ b/src/PositionCache.h
@@ -212,8 +212,7 @@ struct TextSegment {
// Class to break a line of text into shorter runs at sensible places.
class BreakFinder {
const LineLayout *ll;
- Range lineRange;
- Sci::Position posLineStart;
+ const Range lineRange;
int nextBreak;
std::vector<int> selAndEdge;
unsigned int saeCurrentPos;
@@ -235,7 +234,7 @@ public:
Foreground = 2,
ForegroundAndSelection = 3,
};
- BreakFinder(const LineLayout *ll_, const Selection *psel, Range lineRange_, Sci::Position posLineStart_,
+ BreakFinder(const LineLayout *ll_, const Selection *psel, Range lineRange_, Sci::Position posLineStart,
XYPOSITION xStart, BreakFor breakFor, const Document *pdoc_, const SpecialRepresentations *preprs_, const ViewStyle *pvsDraw);
// Deleted so BreakFinder objects can not be copied.
BreakFinder(const BreakFinder &) = delete;