aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2012-04-12 14:05:13 +1000
committernyamatongwe <devnull@localhost>2012-04-12 14:05:13 +1000
commitcf13e3ed50678dd18d035a4f4cae8eab6d338827 (patch)
treedec717a31b49785b2a0aa2b9765bec4dbb4dba6c /src
parent6fb8f4cab95a131c77b3116f2f8f45bbf51b3cce (diff)
downloadscintilla-mirror-cf13e3ed50678dd18d035a4f4cae8eab6d338827.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);
}
}
}