diff options
author | nyamatongwe <unknown> | 2002-02-20 02:15:24 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2002-02-20 02:15:24 +0000 |
commit | f1bc4c2f47e111578ddaf3e51394b88edf030c3e (patch) | |
tree | 8b7cd55ec225a75ba55c3471df2cf880afbbbece /src/ContractionState.cxx | |
parent | 62afcdff49ff9d7e0ef796f85257b3100a6f8ccb (diff) | |
download | scintilla-mirror-f1bc4c2f47e111578ddaf3e51394b88edf030c3e.tar.gz |
Fixed off-by-one when handling beyond end of display lines.
Diffstat (limited to 'src/ContractionState.cxx')
-rw-r--r-- | src/ContractionState.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ContractionState.cxx b/src/ContractionState.cxx index aadf98ed9..5b36b2cad 100644 --- a/src/ContractionState.cxx +++ b/src/ContractionState.cxx @@ -104,7 +104,7 @@ int ContractionState::DocFromDisplay(int lineDisplay) const { if (lineDisplay <= 0) return 0; if (lineDisplay >= linesInDisplay) - return linesInDoc-1; + return linesInDoc; if (size == 0) return lineDisplay; MakeValid(); |