From f87ff21b8999735b42cd09b4161bf3cc41f628cc Mon Sep 17 00:00:00 2001 From: Marko Njezic Date: Tue, 14 Jun 2011 12:58:03 +0200 Subject: Fix edge line display on wrapped lines. Bug #3314807. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index 14d2b2673..587aa8050 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2929,6 +2929,8 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis if (vsDraw.edgeState == EDGE_LINE) { int edgeX = theEdge * vsDraw.spaceWidth; rcSegment.left = edgeX + xStart; + if ((ll->wrapIndent != 0) && (lineStart != 0)) + rcSegment.left -= ll->wrapIndent; rcSegment.right = rcSegment.left + 1; surface->FillRectangle(rcSegment, vsDraw.edgecolour.allocated); } -- cgit v1.2.3