From 915adb1eb4ddcbdc7974ee306f83ee8e88698e6d Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 12 Sep 2022 21:27:27 +1000 Subject: 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. --- src/EditView.cxx | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src') 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()); + } } } -- cgit v1.2.3