diff options
| author | nyamatongwe <devnull@localhost> | 2003-11-06 11:56:33 +0000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2003-11-06 11:56:33 +0000 |
| commit | 0ac7e6ebc0eae46c990333505a0d1d39179ac6b2 (patch) | |
| tree | b96e4269877fd0fa25864ef5da4fb5ef5bf789f7 /src/Editor.cxx | |
| parent | 31958200922e6a7c547775195f95982afcb93073 (diff) | |
| download | scintilla-mirror-0ac7e6ebc0eae46c990333505a0d1d39179ac6b2.tar.gz | |
SelectionText has been holding a terminating NUL but some client code
was adding an extra NUL. Documented this and avoid adding extra NUL.
Diffstat (limited to 'src/Editor.cxx')
| -rw-r--r-- | src/Editor.cxx | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 2331e64e0..ce606ee00 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -5487,7 +5487,6 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { if (selectedText.len) { for (; iChar < selectedText.len; iChar++) ptr[iChar] = selectedText.s[iChar]; - ptr[iChar] = '\0'; } else { ptr[0] = '\0'; } |
