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 | 30cdf71d4f77e44ba5b0819c68627aa1b9784660 (patch) | |
tree | d0d99eab4aa4608de24090bb3dd39cc4d316386b /src | |
parent | dacba5325f28125a993c27147d3de8ed97345aea (diff) | |
parent | 20b4ee4d3902fa21680b3117ca25bc55280fe24c (diff) | |
download | scintilla-mirror-30cdf71d4f77e44ba5b0819c68627aa1b9784660.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); |