aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2006-02-18 12:20:08 +0000
committernyamatongwe <unknown>2006-02-18 12:20:08 +0000
commit5dbfa4944ba875261e90ce7dca74eb486ffe357f (patch)
tree2204d9b41865107c2ea71f93428581974ed1650e /src
parentc6423dd1a23e3d45d81b86d6448b2d060a79ba83 (diff)
downloadscintilla-mirror-5dbfa4944ba875261e90ce7dca74eb486ffe357f.tar.gz
Fixed off-by-one.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index bd0fc9fba..8780a128f 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4854,7 +4854,7 @@ void Editor::CopyRangeToClipboard(int start, int end) {
void Editor::CopyText(int length, const char *text) {
SelectionText selectedText;
- selectedText.Copy(text, length,
+ selectedText.Copy(text, length + 1,
pdoc->dbcsCodePage, vs.styles[STYLE_DEFAULT].characterSet, false);
CopyToClipboard(selectedText);
}