aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
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
commit43039e6bfae886e642ac23bc105a601a20bd75e1 (patch)
tree9f75ab7b46d36ebe7464aaf53d8f3b91793eb581 /src
parentfb2a241ed06f68b17de824937b197208695b3c65 (diff)
downloadscintilla-mirror-43039e6bfae886e642ac23bc105a601a20bd75e1.tar.gz
Bug [#1585]. Cursor down fails on wrapped lines.
Diffstat (limited to 'src')
-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;