diff options
author | nyamatongwe <unknown> | 2013-02-28 15:23:33 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2013-02-28 15:23:33 +1100 |
commit | e6e91e20e83079fc3ccc14277b6c93dcb7fd30d6 (patch) | |
tree | 39ab7007791964e8a7b14fdbfb95aae8668ecfba /src/ContractionState.cxx | |
parent | 774b6ffb346a0ed98e58302a9f294fde0a32cc0f (diff) | |
download | scintilla-mirror-e6e91e20e83079fc3ccc14277b6c93dcb7fd30d6.tar.gz |
Return last display line for document lines beyond document end.
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 af0f4f3db..957fd177b 100644 --- a/src/ContractionState.cxx +++ b/src/ContractionState.cxx @@ -66,7 +66,7 @@ int ContractionState::LinesDisplayed() const { int ContractionState::DisplayFromDoc(int lineDoc) const { if (OneToOne()) { - return lineDoc; + return (lineDoc <= linesInDocument) ? lineDoc : linesInDocument; } else { if (lineDoc > displayLines->Partitions()) lineDoc = displayLines->Partitions(); |