diff options
author | nyamatongwe <unknown> | 2001-08-01 03:25:45 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2001-08-01 03:25:45 +0000 |
commit | b0dcc83d5b42183956f59baa7806a5db68f20af0 (patch) | |
tree | 4e131d669d81ce4e91056305499b8ab837a4c379 /src | |
parent | 11e3b6bebe277b43e2a9e78e4b01a6c87406acec (diff) | |
download | scintilla-mirror-b0dcc83d5b42183956f59baa7806a5db68f20af0.tar.gz |
SCI_GETSELTEXT puts a \0 in the buffer if selection is empty.
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 bf53de224..4c95b29b8 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3641,6 +3641,8 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { ptr[iChar] = text[iChar]; ptr[iChar] = '\0'; delete []text; + } else { + ptr[0] = '\0'; } return iChar; } |