diff options
author | Zufu Liu <unknown> | 2021-07-15 17:29:24 +1000 |
---|---|---|
committer | Zufu Liu <unknown> | 2021-07-15 17:29:24 +1000 |
commit | 39be73514c317e7d672e0a09862571e64f8979da (patch) | |
tree | bbfb503821368eaa608174af4532f50026e3f723 /src/CellBuffer.h | |
parent | f4878568f55a9c3b6eef8cc8fad9b1aa7e8ab4ce (diff) | |
download | scintilla-mirror-39be73514c317e7d672e0a09862571e64f8979da.tar.gz |
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.
Diffstat (limited to 'src/CellBuffer.h')
-rw-r--r-- | src/CellBuffer.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CellBuffer.h b/src/CellBuffer.h index 637d0a6b5..be7957e99 100644 --- a/src/CellBuffer.h +++ b/src/CellBuffer.h @@ -191,6 +191,7 @@ public: void AllocateLineCharacterIndex(Scintilla::LineCharacterIndexType lineCharacterIndex); void ReleaseLineCharacterIndex(Scintilla::LineCharacterIndexType lineCharacterIndex); Sci::Line Lines() const noexcept; + void AllocateLines(Sci::Line lines); Sci::Position LineStart(Sci::Line line) const noexcept; Sci::Position IndexLineStart(Sci::Line line, Scintilla::LineCharacterIndexType lineCharacterIndex) const noexcept; Sci::Line LineFromPosition(Sci::Position pos) const noexcept; |