diff options
| author | nyamatongwe <unknown> | 2003-05-11 03:32:06 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2003-05-11 03:32:06 +0000 | 
| commit | d271b5d7800064e6e7c01842ff7e469ba99b2c29 (patch) | |
| tree | 9df425db1b66bfd6394423ec2f67e728353c3448 /src | |
| parent | 9cf0b639730575de294b2f28d3df84468b98dce4 (diff) | |
| download | scintilla-mirror-d271b5d7800064e6e7c01842ff7e469ba99b2c29.tar.gz | |
Clipping copy range into document.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 190bcab1b..cc53f5aac 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4230,6 +4230,8 @@ void Editor::CopySelectionRange(SelectionText *ss) {  }  void Editor::CopyRangeToClipboard(int start, int end) { +	start = pdoc->ClampPositionIntoDocument(start); +	end = pdoc->ClampPositionIntoDocument(end);  	SelectionText selectedText;  	selectedText.Set(CopyRange(start, end), end - start + 1);  	CopyToClipboard(selectedText); | 
