diff options
author | mitchell <unknown> | 2018-05-05 23:10:51 -0400 |
---|---|---|
committer | mitchell <unknown> | 2018-05-05 23:10:51 -0400 |
commit | 92676970616a5163636329e49c4cc825e46d6c7f (patch) | |
tree | 9e2cc612919e2bc1ee50a31dc0fd8bb7652d94d7 /src/ContractionState.cxx | |
parent | 74d9510a055d6b9aa9d7679522f255db62de76d0 (diff) | |
download | scintilla-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/ContractionState.cxx')
-rw-r--r-- | src/ContractionState.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx index 5922bf546..be3c3d6ad 100644 --- a/src/ContractionState.cxx +++ b/src/ContractionState.cxx @@ -407,8 +407,11 @@ void ContractionState<LINE>::Check() const { namespace Scintilla { -std::unique_ptr<IContractionState> ContractionStateCreate() { - return std::unique_ptr<ContractionState<Sci::Line>>(new ContractionState<Sci::Line>()); +std::unique_ptr<IContractionState> ContractionStateCreate(bool largeDocument) { + if (largeDocument) + return std::unique_ptr<ContractionState<Sci::Line>>(new ContractionState<Sci::Line>()); + else + return std::unique_ptr<ContractionState<int>>(new ContractionState<int>()); } } |