aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2004-01-20 12:09:08 +0000
committernyamatongwe <unknown>2004-01-20 12:09:08 +0000
commitea2e7c10cc227cee9f939d38116c1cd3608d7a1b (patch)
treeb4ae7513d811353fb24759e4674935b05979a2af /src/Editor.cxx
parent3e1668f499d347b5f091d22789dba243cc98f860 (diff)
downloadscintilla-mirror-ea2e7c10cc227cee9f939d38116c1cd3608d7a1b.tar.gz
Method to preallocate document space.
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 f9d20aa47..a11f99688 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5788,6 +5788,10 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
case SCI_GETLENGTH:
return pdoc->Length();
+ case SCI_ALLOCATE:
+ pdoc->Allocate(wParam);
+ break;
+
case SCI_GETCHARAT:
return pdoc->CharAt(wParam);