From 8a159b44bdf6541f7dcd640e160447617db13989 Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Tue, 21 Nov 2023 11:40:02 +1100 Subject: Feature [feature-requests:#1502] Improve speed of LineLayoutCache::Invalidate for replacing text. --- 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 e610ac879..b63fb22fc 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -156,7 +156,7 @@ public: private: Scintilla::LineCache level; std::vector>cache; - bool allInvalidated; + LineLayout::ValidLevel maxValidity; int styleClock; size_t EntryForLine(Sci::Line line) const noexcept; void AllocateForLevel(Sci::Line linesOnScreen, Sci::Line linesInDoc); -- cgit v1.2.3