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
commita1104a01eb27a3ca87b1d04d75189c5ee40c7651 (patch)
tree2beb0d1376d40c574a568b8ebd49c9aa142925fb /src/Editor.cxx
parent7d38203480abda0f0a8a73f1c374ff91e38dda14 (diff)
downloadscintilla-mirror-a1104a01eb27a3ca87b1d04d75189c5ee40c7651.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;