diff options
| author | Neil <nyamatongwe@gmail.com> | 2017-03-27 20:49:17 +1100 | 
|---|---|---|
| committer | Neil <nyamatongwe@gmail.com> | 2017-03-27 20:49:17 +1100 | 
| commit | 7ce3a72ba5942686fce2bccc59a051044511f238 (patch) | |
| tree | ec98c1f13f145af4cf0cfef8e764e633185c9126 | |
| parent | 3b6afddee5720751398ffa77f7af832f77c9c2ec (diff) | |
| download | scintilla-mirror-7ce3a72ba5942686fce2bccc59a051044511f238.tar.gz | |
Keep positions in Sci_Position variables so can adapt to changes.
| -rw-r--r-- | lexers/LexErrorList.cxx | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/lexers/LexErrorList.cxx b/lexers/LexErrorList.cxx index 7aaf9a5ad..50e12469c 100644 --- a/lexers/LexErrorList.cxx +++ b/lexers/LexErrorList.cxx @@ -315,9 +315,9 @@ static void ColouriseErrorListLine(  	Sci_Position startValue = -1;  	int style = RecogniseErrorListLine(lineBuffer, lengthLine, startValue);  	if (escapeSequences && strstr(lineBuffer, CSI)) { -		const int startPos = endPos - lengthLine; +		const Sci_Position startPos = endPos - lengthLine;  		const char *linePortion = lineBuffer; -		int startPortion = startPos; +		Sci_Position startPortion = startPos;  		int portionStyle = style;  		while (const char *startSeq = strstr(linePortion, CSI)) {  			if (startSeq > linePortion) { @@ -326,7 +326,7 @@ static void ColouriseErrorListLine(  			const char *endSeq = startSeq + 2;  			while (!SequenceEnd(*endSeq))  				endSeq++; -			const int endSeqPosition = startPortion + static_cast<int>(endSeq - linePortion) + 1; +			const Sci_Position endSeqPosition = startPortion + (endSeq - linePortion) + 1;  			switch (*endSeq) {  			case 0:  				styler.ColourTo(endPos, SCE_ERR_ESCSEQ_UNKNOWN); | 
