From cdf89374e4bbf0d4a02100968b38b263dee239e1 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 7 May 2021 22:39:01 +1000 Subject: When resizing for Cache::page, move cached entries to correct positions. Hoist position calculation into EntryForLine method. --- src/PositionCache.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/PositionCache.h') 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(); -- cgit v1.2.3