diff options
Diffstat (limited to 'src/CellBuffer.cxx')
| -rw-r--r-- | src/CellBuffer.cxx | 16 | 
1 files changed, 14 insertions, 2 deletions
| diff --git a/src/CellBuffer.cxx b/src/CellBuffer.cxx index b1836b924..41dd36b56 100644 --- a/src/CellBuffer.cxx +++ b/src/CellBuffer.cxx @@ -364,12 +364,16 @@ void UndoHistory::CompletedRedoStep() {  	currentAction++;  } -CellBuffer::CellBuffer(bool hasStyles_) : -	hasStyles(hasStyles_) { +CellBuffer::CellBuffer(bool hasStyles_, bool largeDocument_) : +	hasStyles(hasStyles_), largeDocument(largeDocument_) {  	readOnly = false;  	utf8LineEnds = 0;  	collectingUndo = true;  	plv = std::unique_ptr<LineVector<Sci::Position>>(new LineVector<Sci::Position>()); +	if (largeDocument) +		plv = std::unique_ptr<LineVector<Sci::Position>>(new LineVector<Sci::Position>()); +	else +		plv = std::unique_ptr<LineVector<int>>(new LineVector<int>());  }  CellBuffer::~CellBuffer() { @@ -556,6 +560,14 @@ void CellBuffer::SetReadOnly(bool set) {  	readOnly = set;  } +bool CellBuffer::IsLarge() const { +	return largeDocument; +} + +bool CellBuffer::HasStyles() const { +	return hasStyles; +} +  void CellBuffer::SetSavePoint() {  	uh.SetSavePoint();  } | 
