diff options
Diffstat (limited to 'src/Document.cxx')
| -rw-r--r-- | src/Document.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/Document.cxx b/src/Document.cxx index c0290936f..34e6a99f3 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -1522,8 +1522,8 @@ void Document::EnsureStyledTo(int pos) {  		IncrementStyleClock();  		if (pli && !pli->UseContainerLexing()) {  			int lineEndStyled = LineFromPosition(GetEndStyled()); -			int endStyled = LineStart(lineEndStyled); -			pli->Colourise(endStyled, pos); +			int endStyledTo = LineStart(lineEndStyled); +			pli->Colourise(endStyledTo, pos);  		} else {  			// Ask the watchers to style, and stop as soon as one responds.  			for (int i = 0; pos > GetEndStyled() && i < lenWatchers; i++) { | 
