diff options
author | nyamatongwe <devnull@localhost> | 2003-05-11 03:32:06 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2003-05-11 03:32:06 +0000 |
commit | 67937e72572be72045aac2a104012bcad78ae809 (patch) | |
tree | 9df425db1b66bfd6394423ec2f67e728353c3448 /src | |
parent | df8462f8e04243d4754e5a6b11d73c6d06179257 (diff) | |
download | scintilla-mirror-67937e72572be72045aac2a104012bcad78ae809.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); |