From 95bd771554b102a56363ef6421f4ddf8c18e58d8 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. --- doc/ScintillaHistory.html | 12 ++++++++++++ src/PositionCache.cxx | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 7a6381868..caf39dec9 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -458,6 +458,18 @@ Icons Copyright(C) 1998 by Dean S. Jones
+

+ Release 3.4.1 +

+

Release 3.4.0

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