diff options
Diffstat (limited to 'src/Document.cxx')
| -rw-r--r-- | src/Document.cxx | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/src/Document.cxx b/src/Document.cxx index fe58728ee..037371cd6 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1212,7 +1212,7 @@ bool Document::DeleteChars(Sci::Position pos, Sci::Position len) {  			    DocModification(  			        ModificationFlags::BeforeDelete | ModificationFlags::User,  			        pos, len, -			        0, 0)); +				0, nullptr));  			const Sci::Line prevLinesTotal = LinesTotal();  			const bool startSavePoint = cb.IsSavePoint();  			bool startSequence = false; @@ -2413,7 +2413,7 @@ Sci::Line Document::GetMaxLineState() const noexcept {  void SCI_METHOD Document::ChangeLexerState(Sci_Position start, Sci_Position end) {  	const DocModification mh(ModificationFlags::LexerState, start, -		end-start, 0, 0, 0); +		end-start, 0, nullptr, 0);  	NotifyModified(mh);  } @@ -2426,20 +2426,20 @@ StyledText Document::MarginStyledText(Sci::Line line) const noexcept {  void Document::MarginSetText(Sci::Line line, const char *text) {  	Margins()->SetText(line, text);  	const DocModification mh(ModificationFlags::ChangeMargin, LineStart(line), -		0, 0, 0, line); +		0, 0, nullptr, line);  	NotifyModified(mh);  }  void Document::MarginSetStyle(Sci::Line line, int style) {  	Margins()->SetStyle(line, style);  	NotifyModified(DocModification(ModificationFlags::ChangeMargin, LineStart(line), -		0, 0, 0, line)); +		0, 0, nullptr, line));  }  void Document::MarginSetStyles(Sci::Line line, const unsigned char *styles) {  	Margins()->SetStyles(line, styles);  	NotifyModified(DocModification(ModificationFlags::ChangeMargin, LineStart(line), -		0, 0, 0, line)); +		0, 0, nullptr, line));  }  void Document::MarginClearAll() { @@ -2462,7 +2462,7 @@ void Document::AnnotationSetText(Sci::Line line, const char *text) {  		Annotations()->SetText(line, text);  		const int linesAfter = AnnotationLines(line);  		DocModification mh(ModificationFlags::ChangeAnnotation, LineStart(line), -			0, 0, 0, line); +			0, 0, nullptr, line);  		mh.annotationLinesAdded = linesAfter - linesBefore;  		NotifyModified(mh);  	} @@ -2472,7 +2472,7 @@ void Document::AnnotationSetStyle(Sci::Line line, int style) {  	if (line >= 0 && line < LinesTotal()) {  		Annotations()->SetStyle(line, style);  		const DocModification mh(ModificationFlags::ChangeAnnotation, LineStart(line), -			0, 0, 0, line); +			0, 0, nullptr, line);  		NotifyModified(mh);  	}  } @@ -2505,7 +2505,7 @@ void Document::EOLAnnotationSetText(Sci::Line line, const char *text) {  	if (line >= 0 && line < LinesTotal()) {  		EOLAnnotations()->SetText(line, text);  		const DocModification mh(ModificationFlags::ChangeEOLAnnotation, LineStart(line), -			0, 0, 0, line); +			0, 0, nullptr, line);  		NotifyModified(mh);  	}  } @@ -2514,7 +2514,7 @@ void Document::EOLAnnotationSetStyle(Sci::Line line, int style) {  	if (line >= 0 && line < LinesTotal()) {  		EOLAnnotations()->SetStyle(line, style);  		const DocModification mh(ModificationFlags::ChangeEOLAnnotation, LineStart(line), -			0, 0, 0, line); +			0, 0, nullptr, line);  		NotifyModified(mh);  	}  } | 
