diff --git a/scintilla/src/EditView.cxx b/scintilla/src/EditView.cxx index 90ac7a514..48392fc30 100644 --- a/scintilla/src/EditView.cxx +++ b/scintilla/src/EditView.cxx @@ -2769,6 +2769,14 @@ Sci::Position EditView::FormatRange(bool draw, CharacterRangeFull chrg, Rectangl vsPrint.Refresh(*surfaceMeasure, model.pdoc->tabInChars); // Recalculate fixedColumnWidth } + // Turn off change history marker backgrounds + constexpr unsigned int changeMarkers = + 1u << static_cast(MarkerOutline::HistoryRevertedToOrigin) | + 1u << static_cast(MarkerOutline::HistorySaved) | + 1u << static_cast(MarkerOutline::HistoryModified) | + 1u << static_cast(MarkerOutline::HistoryRevertedToModified); + vsPrint.maskInLine &= ~changeMarkers; + const Sci::Line linePrintStart = model.pdoc->SciLineFromPosition(chrg.cpMin); Sci::Line linePrintLast = linePrintStart + (rc.bottom - rc.top) / vsPrint.lineHeight - 1; if (linePrintLast < linePrintStart)