diff options
author | nyamatongwe <devnull@localhost> | 2001-08-01 03:25:45 +0000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2001-08-01 03:25:45 +0000 |
commit | 02450d90dc09da90ce13e7408f19028cc0b91536 (patch) | |
tree | 4e131d669d81ce4e91056305499b8ab837a4c379 /src | |
parent | f2b1bd9e3969c179dd9c214f4c96b084f1c9d2a3 (diff) | |
download | scintilla-mirror-02450d90dc09da90ce13e7408f19028cc0b91536.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; } |