diff options
| author | nyamatongwe <devnull@localhost> | 2007-02-20 23:04:56 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2007-02-20 23:04:56 +0000 | 
| commit | 5657ed9c68de4ba1c324493a3d8262be89c56b9f (patch) | |
| tree | aacb8623ea906c9b6c2f0f746730e646e0338a7d | |
| parent | a01e47a0a71e7d061988b439a9d572030e6d675a (diff) | |
| download | scintilla-mirror-5657ed9c68de4ba1c324493a3d8262be89c56b9f.tar.gz | |
Fix for bug #1663839: stuttered page down doesn't work
if lines are wrapped.
| -rw-r--r-- | src/Editor.cxx | 5 | 
1 files changed, 4 insertions, 1 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index d3d16036b..3070530cc 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4022,7 +4022,10 @@ void Editor::PageMove(int direction, selTypes sel, bool stuttered) {  	// I consider only the caretYSlop, and ignore the caretYPolicy-- is that a problem?  	int currentLine = pdoc->LineFromPosition(currentPos);  	int topStutterLine = topLine + caretYSlop; -	int bottomStutterLine = topLine + LinesToScroll() - caretYSlop; +	int bottomStutterLine = +		pdoc->LineFromPosition(PositionFromLocation( +		Point(lastXChosen, direction * vs.lineHeight * LinesToScroll()))) +		- caretYSlop - 1;  	if (stuttered && (direction < 0 && currentLine > topStutterLine)) {  		topLineNew = topLine; | 
