aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorZufu Liu <unknown>2021-07-15 17:29:24 +1000
committerZufu Liu <unknown>2021-07-15 17:29:24 +1000
commit39be73514c317e7d672e0a09862571e64f8979da (patch)
treebbfb503821368eaa608174af4532f50026e3f723 /src/Editor.cxx
parentf4878568f55a9c3b6eef8cc8fad9b1aa7e8ab4ce (diff)
downloadscintilla-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/Editor.cxx')
-rw-r--r--src/Editor.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 5a0c153da..db7e2366e 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5988,6 +5988,10 @@ sptr_t Editor::WndProc(Message iMessage, uptr_t wParam, sptr_t lParam) {
else
return pdoc->LinesTotal();
+ case Message::AllocateLines:
+ pdoc->AllocateLines(wParam);
+ break;
+
case Message::GetModify:
return !pdoc->IsSavePoint();