aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2012-04-12 14:05:13 +1000
committernyamatongwe <unknown>2012-04-12 14:05:13 +1000
commitade021a7022a79c56a9c5bd6b4f68f1906860809 (patch)
tree7ce3e6b90c4b4ee9dfa5f9e60da3cb37cbb0a54d /src
parent6ee776c7fd697867101e8339682a2e58670382fe (diff)
downloadscintilla-mirror-ade021a7022a79c56a9c5bd6b4f68f1906860809.tar.gz
Bug #3514882. Fix recent change set 4086 which caused selection to end of a wrapped
subline to continue 1 pixel into the next subline. From Marko Njezic.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index a41a5e24a..8847075ac 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -3250,7 +3250,8 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis
rcSegment.right = xStart + ll->positions[portion.end.Position() - posLineStart] - subLineStart + portion.end.VirtualSpace() * spaceWidth;
rcSegment.left = (rcSegment.left > rcLine.left) ? rcSegment.left : rcLine.left;
rcSegment.right = (rcSegment.right < rcLine.right) ? rcSegment.right : rcLine.right;
- SimpleAlphaRectangle(surface, rcSegment, SelectionBackground(vsDraw, r == sel.Main()), alpha);
+ if (rcSegment.right > rcLine.left)
+ SimpleAlphaRectangle(surface, rcSegment, SelectionBackground(vsDraw, r == sel.Main()), alpha);
}
}
}