diff options
| author | nyamatongwe <nyamatongwe@gmail.com> | 2012-01-25 08:09:18 +1100 | 
|---|---|---|
| committer | nyamatongwe <nyamatongwe@gmail.com> | 2012-01-25 08:09:18 +1100 | 
| commit | 79704611ff7dc8ce16e618d732708ce404f40272 (patch) | |
| tree | 46bb3817c6a9e77708d3329545aa4e1c76bbc3eb /src | |
| parent | 26cd4112be5f27565bc71b400cb882265928919e (diff) | |
| parent | 2d1179def141aede46d3e8da8a903d8a43254750 (diff) | |
| download | scintilla-mirror-79704611ff7dc8ce16e618d732708ce404f40272.tar.gz | |
Merge
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 4fce8bb2d..26032b85f 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4643,7 +4643,7 @@ void Editor::NotifyModified(Document *, DocModification mh, void *) {  		if ((!willRedrawAll) && ((paintState == notPainting) || !PaintContainsMargin())) {  			if (mh.modificationType & SC_MOD_CHANGEFOLD) {  				// Fold changes can affect the drawing of following lines so redraw whole margin -				RedrawSelMargin(mh.line-1, true); +				RedrawSelMargin(highlightDelimiter.isEnabled ? -1 : mh.line-1, true);  			} else {  				RedrawSelMargin(mh.line);  			} @@ -6701,7 +6701,7 @@ void Editor::SetBraceHighlight(Position pos0, Position pos1, int matchStyle) {  void Editor::SetAnnotationHeights(int start, int end) {  	if (vs.annotationVisible) {  		bool changedHeight = false; -		for (int line=start; line<end; line++) { +		for (int line=start; line<end && line<pdoc->LinesTotal(); line++) {  			int linesWrapped = 1;  			if (wrapState != eWrapNone) {  				AutoSurface surface(this); | 
