diff options
author | Neil <nyamatongwe@gmail.com> | 2021-05-07 22:39:01 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2021-05-07 22:39:01 +1000 |
commit | cdf89374e4bbf0d4a02100968b38b263dee239e1 (patch) | |
tree | c64ad5ad174f6462d0a62ad7ca5ef9888d236503 /src/PositionCache.h | |
parent | da718f8909b937bd839fc8e09d0b81727644c5fd (diff) | |
download | scintilla-mirror-cdf89374e4bbf0d4a02100968b38b263dee239e1.tar.gz |
When resizing for Cache::page, move cached entries to correct positions.
Hoist position calculation into EntryForLine method.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r-- | src/PositionCache.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h index 479476eb9..41da53bcf 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -164,7 +164,7 @@ private: bool allInvalidated; int styleClock; int useCount; - void Allocate(size_t length_); + size_t EntryForLine(Sci::Line line) const noexcept; void AllocateForLevel(Sci::Line linesOnScreen, Sci::Line linesInDoc); public: LineLayoutCache(); |