diff options
author | Zufu Liu <unknown> | 2021-10-24 21:05:52 +1100 |
---|---|---|
committer | Zufu Liu <unknown> | 2021-10-24 21:05:52 +1100 |
commit | 83b67c1d70ac48dd242e7a7d6d248e26cddc69e4 (patch) | |
tree | 5e89ea486d175e77bc00a902d97e1c0f664feb40 /src/PositionCache.h | |
parent | 42c72b79878ae99c45532e46f12642b4e21affee (diff) | |
download | scintilla-mirror-83b67c1d70ac48dd242e7a7d6d248e26cddc69e4.tar.gz |
Avoid extra breaks introduced by revision 8993.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r-- | src/PositionCache.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h index 4ee501841..1cbc94495 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -251,8 +251,14 @@ public: enum { lengthStartSubdivision = 300 }; // Try to make each subdivided run lengthEachSubdivision or shorter. enum { lengthEachSubdivision = 100 }; + enum class BreakFor { + Text = 0, + Selection = 1, + Foreground = 2, + ForegroundAndSelection = 3, + }; BreakFinder(const LineLayout *ll_, const Selection *psel, Range lineRange_, Sci::Position posLineStart_, - XYPOSITION xStart, bool breakForSelection, const Document *pdoc_, const SpecialRepresentations *preprs_, const ViewStyle *pvsDraw); + 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; BreakFinder(BreakFinder &&) = delete; |