From 43039e6bfae886e642ac23bc105a601a20bd75e1 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 25 Mar 2014 23:21:40 +1100 Subject: Bug [#1585]. Cursor down fails on wrapped lines. --- src/PositionCache.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx index 664003c7e..f197a6559 100644 --- a/src/PositionCache.cxx +++ b/src/PositionCache.cxx @@ -237,8 +237,9 @@ Point LineLayout::PointFromPosition(int posInLine, int lineHeight) const { pt.x = positions[posInLine] - positions[rangeSubLine.start]; if (rangeSubLine.start != 0) // Wrapped lines may be indented pt.x += wrapIndent; - break; } + } else { + break; } } return pt; -- cgit v1.2.3