diff options
author | Neil <nyamatongwe@gmail.com> | 2014-03-25 23:21:40 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2014-03-25 23:21:40 +1100 |
commit | 43039e6bfae886e642ac23bc105a601a20bd75e1 (patch) | |
tree | 9f75ab7b46d36ebe7464aaf53d8f3b91793eb581 | |
parent | fb2a241ed06f68b17de824937b197208695b3c65 (diff) | |
download | scintilla-mirror-43039e6bfae886e642ac23bc105a601a20bd75e1.tar.gz |
Bug [#1585]. Cursor down fails on wrapped lines.
-rw-r--r-- | doc/ScintillaHistory.html | 12 | ||||
-rw-r--r-- | src/PositionCache.cxx | 3 |
2 files changed, 14 insertions, 1 deletions
diff --git a/doc/ScintillaHistory.html b/doc/ScintillaHistory.html index 7a6381868..caf39dec9 100644 --- a/doc/ScintillaHistory.html +++ b/doc/ScintillaHistory.html @@ -459,6 +459,18 @@ </li> </ul> <h3> + <a href="http://prdownloads.sourceforge.net/scintilla/scite341.zip?download">Release 3.4.1</a> + </h3> + <ul> + <li> + Released 22 March 2014. + </li> + <li> + Bug fixed where cursor down failed on wrapped lines. + <a href="http://sourceforge.net/p/scintilla/bugs/1585/">Bug #1585</a>. + </li> + </ul> + <h3> <a href="http://prdownloads.sourceforge.net/scintilla/scite340.zip?download">Release 3.4.0</a> </h3> <ul> 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; |