diff options
| author | nyamatongwe <devnull@localhost> | 2013-02-28 15:23:33 +1100 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2013-02-28 15:23:33 +1100 | 
| commit | c73567a8b582af6150c24cf54aa731e2ff8cbf96 (patch) | |
| tree | 0b4889accce1d0945dbf79748fd114e88fee606a /src | |
| parent | 1c8a210f8cfb22412cb9346a46d404900f3a6f14 (diff) | |
| download | scintilla-mirror-c73567a8b582af6150c24cf54aa731e2ff8cbf96.tar.gz | |
Return last display line for document lines beyond document end.
Diffstat (limited to 'src')
| -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();  | 
