From 39be73514c317e7d672e0a09862571e64f8979da Mon Sep 17 00:00:00 2001 From: Zufu Liu Date: Thu, 15 Jul 2021 17:29:24 +1000 Subject: Feature [feature-requests:#1370] Implement SCI_ALLOCATELINES to allocate indices to hold some number of lines. This is an optimization that can decrease reallocation overhead. --- src/Document.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/Document.cxx') diff --git a/src/Document.cxx b/src/Document.cxx index 6194f772e..96bee868e 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -2266,6 +2266,10 @@ Sci::Line Document::LinesTotal() const noexcept { return cb.Lines(); } +void Document::AllocateLines(Sci::Line lines) { + cb.AllocateLines(lines); +} + void Document::SetDefaultCharClasses(bool includeWordClass) { charClass.SetDefaultCharClasses(includeWordClass); } -- cgit v1.2.3