From 02450d90dc09da90ce13e7408f19028cc0b91536 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Wed, 1 Aug 2001 03:25:45 +0000 Subject: SCI_GETSELTEXT puts a \0 in the buffer if selection is empty. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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; } -- cgit v1.2.3