aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2022-09-12 21:27:27 +1000
committerNeil <nyamatongwe@gmail.com>2022-09-12 21:27:27 +1000
commit915adb1eb4ddcbdc7974ee306f83ee8e88698e6d (patch)
treeb838fa317089b81ce049b3ba7d6ed9688a6f02d1
parent355f308c13dc46747c5f8c4a232f74ccdb44ef58 (diff)
downloadscintilla-mirror-915adb1eb4ddcbdc7974ee306f83ee8e88698e6d.tar.gz
Bug [#2349] When more screen lines in ContractionState than LineLayout for a
line then draw extra lines in purple bugColour to make the problem obvious.
-rw-r--r--src/EditView.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/EditView.cxx b/src/EditView.cxx
index a7b98e233..100d3d18b 100644
--- a/src/EditView.cxx
+++ b/src/EditView.cxx
@@ -1638,6 +1638,11 @@ void EditView::DrawAnnotation(Surface *surface, const EditModel &model, const Vi
surface->FillRectangle(Side(rcBorder, Edge::bottom, 1), colourBorder);
}
}
+ } else {
+ // No annotation to draw so show bug with bugColour
+ if (FlagSet(phase, DrawPhase::back)) {
+ surface->FillRectangle(rcSegment, bugColour.Opaque());
+ }
}
}