aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authormitchell <unknown>2018-05-05 23:10:51 -0400
committermitchell <unknown>2018-05-05 23:10:51 -0400
commit92676970616a5163636329e49c4cc825e46d6c7f (patch)
tree9e2cc612919e2bc1ee50a31dc0fd8bb7652d94d7 /src/Editor.cxx
parent74d9510a055d6b9aa9d7679522f255db62de76d0 (diff)
downloadscintilla-mirror-92676970616a5163636329e49c4cc825e46d6c7f.tar.gz
Backport: Add SC_DOCUMENTOPTION_TEXT_LARGE option for documents larger than 2 GigaBytes.
This option is provisional and experimental. Backport of changesets 6696:9729ff36c5b1 and 6723:cffe824ab55e. Also added '#include <cstddef>' to top of src/RESearch.cxx to fix 32-bit build error.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 79fe1addc..3571713dc 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5212,7 +5212,7 @@ void Editor::SetDocPointer(Document *document) {
pdoc = document;
}
pdoc->AddRef();
- pcs = ContractionStateCreate();
+ pcs = ContractionStateCreate(pdoc->IsLarge());
// Ensure all positions within document
sel.Clear();
@@ -7595,7 +7595,7 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
Document *doc = new Document(static_cast<int>(lParam));
doc->AddRef();
doc->Allocate(static_cast<int>(wParam));
- pcs = ContractionStateCreate();
+ pcs = ContractionStateCreate(pdoc->IsLarge());
return reinterpret_cast<sptr_t>(doc);
}
@@ -7607,12 +7607,15 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) {
(reinterpret_cast<Document *>(lParam))->Release();
break;
+ case SCI_GETDOCUMENTOPTIONS:
+ return pdoc->Options();
+
case SCI_CREATELOADER: {
Document *doc = new Document(static_cast<int>(lParam));
doc->AddRef();
doc->Allocate(static_cast<int>(wParam));
doc->SetUndoCollection(false);
- pcs = ContractionStateCreate();
+ pcs = ContractionStateCreate(pdoc->IsLarge());
return reinterpret_cast<sptr_t>(static_cast<ILoader *>(doc));
}