From a1104a01eb27a3ca87b1d04d75189c5ee40c7651 Mon Sep 17 00:00:00 2001 From: Neil Date: Wed, 23 Sep 2015 09:33:21 +1000 Subject: When SC_MARK_UNDERLINE if not assigned to a margin, stop drawing the whole line. Optimise drawing of markers that appear in the text area. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Editor.cxx') diff --git a/src/Editor.cxx b/src/Editor.cxx index 165bc9fc2..2a0ac420b 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -478,7 +478,7 @@ void Editor::Redraw() { } void Editor::RedrawSelMargin(int line, bool allAfter) { - const bool markersInText = vs.maskInLine != 0; + const bool markersInText = vs.maskInLine || vs.maskDrawInText; if (!wMargin.GetID() || markersInText) { // May affect text area so may need to abandon and retry if (AbandonPaint()) { return; -- cgit v1.2.3