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. --- call/ScintillaCall.cxx | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'call') diff --git a/call/ScintillaCall.cxx b/call/ScintillaCall.cxx index f9bffeb64..bec5ccfed 100644 --- a/call/ScintillaCall.cxx +++ b/call/ScintillaCall.cxx @@ -1120,6 +1120,10 @@ Line ScintillaCall::LineCount() { return Call(Message::GetLineCount); } +void ScintillaCall::AllocateLines(Line lines) { + Call(Message::AllocateLines, lines); +} + void ScintillaCall::SetMarginLeft(int pixelWidth) { Call(Message::SetMarginLeft, 0, pixelWidth); } -- cgit v1.2.3