aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2015-09-23 09:33:21 +1000
committerNeil <nyamatongwe@gmail.com>2015-09-23 09:33:21 +1000
commitc9317c2bdfa092a531ed5ba0ec9f5115689489ac (patch)
tree9511dd654e0576afd6caf379a55513f80ea7b4fb /src/Editor.cxx
parent3d6f475c76142eae65b4b219df936f2bc6a4db3a (diff)
downloadscintilla-mirror-c9317c2bdfa092a531ed5ba0ec9f5115689489ac.tar.gz
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.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
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;