aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
diff options
context:
space:
mode:
authorZufu Liu <unknown>2023-11-21 11:40:02 +1100
committerZufu Liu <unknown>2023-11-21 11:40:02 +1100
commit8a159b44bdf6541f7dcd640e160447617db13989 (patch)
tree56551bfb4f7f05272a2e813b7d1469d0eb56e540 /src/PositionCache.h
parentdf54de37b0a372a49bed0130406a5b75b85cd119 (diff)
downloadscintilla-mirror-8a159b44bdf6541f7dcd640e160447617db13989.tar.gz
Feature [feature-requests:#1502] Improve speed of LineLayoutCache::Invalidate
for replacing text.
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 e610ac879..b63fb22fc 100644
--- a/src/PositionCache.h
+++ b/src/PositionCache.h
@@ -156,7 +156,7 @@ public:
private:
Scintilla::LineCache level;
std::vector<std::shared_ptr<LineLayout>>cache;
- bool allInvalidated;
+ LineLayout::ValidLevel maxValidity;
int styleClock;
size_t EntryForLine(Sci::Line line) const noexcept;
void AllocateForLevel(Sci::Line linesOnScreen, Sci::Line linesInDoc);