aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2004-01-20 12:09:08 +0000
committernyamatongwe <devnull@localhost>2004-01-20 12:09:08 +0000
commit3b4321e0bd6090f1e83bf13111d6f6158e49d667 (patch)
treeb4ae7513d811353fb24759e4674935b05979a2af /src/Editor.cxx
parentf5c3d93ebb9148ff12ea7acbe27f17079a5f62d8 (diff)
downloadscintilla-mirror-3b4321e0bd6090f1e83bf13111d6f6158e49d667.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);