aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-05-07 22:39:01 +1000
committerNeil <nyamatongwe@gmail.com>2021-05-07 22:39:01 +1000
commitcdf89374e4bbf0d4a02100968b38b263dee239e1 (patch)
treec64ad5ad174f6462d0a62ad7ca5ef9888d236503 /src/PositionCache.h
parentda718f8909b937bd839fc8e09d0b81727644c5fd (diff)
downloadscintilla-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.h2
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();