aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-03-25 23:21:40 +1100
committerNeil <nyamatongwe@gmail.com>2014-03-25 23:21:40 +1100
commit95bd771554b102a56363ef6421f4ddf8c18e58d8 (patch)
tree1f791e45cb3ffc436234b5bac63022806bf8f39c /src/PositionCache.cxx
parent23f554037216696c0ce67cad40cadb95c6e02167 (diff)
downloadscintilla-mirror-95bd771554b102a56363ef6421f4ddf8c18e58d8.tar.gz
Bug [#1585]. Cursor down fails on wrapped lines.
Diffstat (limited to 'src/PositionCache.cxx')
-rw-r--r--src/PositionCache.cxx3
1 files changed, 2 insertions, 1 deletions
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;