diff options
| author | nyamatongwe <devnull@localhost> | 2005-08-29 00:57:12 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2005-08-29 00:57:12 +0000 | 
| commit | af030da0ca3350e14457afd71776d37fb84d6f7d (patch) | |
| tree | 54f1a2520ae43772f3e50c0d2ee921f349d63bfc | |
| parent | a98736eccb2efbf51d5ff66f7801cb326abcda1a (diff) | |
| download | scintilla-mirror-af030da0ca3350e14457afd71776d37fb84d6f7d.tar.gz | |
Patch from John Ehresman to make page level layout caching handle the caret
line properly as a distinct entry.
| -rw-r--r-- | src/Editor.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 1c6579eed..a710170b5 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -275,9 +275,9 @@ LineLayout *LineLayoutCache::Retrieve(int lineNumber, int lineCaret, int maxChar  		pos = 0;  	} else if (level == llcPage) {  		if (lineNumber == lineCaret) { -			pos = length; +			pos = 0;  		} else { -			pos = lineNumber % length; +			pos = 1 + (lineNumber % (length - 1));  		}  	} else if (level == llcDocument) {  		pos = lineNumber; | 
